home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 7 Games / 07-Games.zip / MONDAY.ZIP / MONDAY.CMD
OS/2 REXX Batch file  |  1990-09-14  |  33KB  |  1,106 lines

  1. /**********************************************************************
  2.  *
  3.  * This is the MONDAY adventure, by Mikel Rice.  It was CRUNCHed by 
  4.  * him, so I don't have any of the original comments.  I uncrunched
  5.  * it and modified the source code (keeping the original style and 
  6.  * wording of the game in tact, of course) so that it would run under
  7.  * both OS/2 and CMS.  It was originally written for CMS.
  8.  *
  9.  * PORTABILITY STATMENT: This code is portable to both CMS and OS/2.
  10.  * This portability should be seemless.  However, there due to 
  11.  * differences in ASCII/EBCDIC converters, you may experience 
  12.  * difficulties.  The most common are the pipe character (|, if you
  13.  * have the right machine), and the NOT symbol.  OS/2 accepts the
  14.  * backslash '\' as NOT, while CMS accepts '^' SHIFT-6 on most
  15.  * terminals.
  16.  * 
  17.  * Feel free to port MONDAY to other environments, compile it, or
  18.  * CRUNCH it, but please always give it out with the source code 
  19.  * and these comments.  MONDAY is freeware, and should NOT be sold.
  20.  *
  21.  * MikeA - 713221.1742@CompuServe.com
  22.  *********************************************************************/
  23. /* MONDAY optimized via ROPT by MIKEL@UWF on 22 Feb 1987 at 16:47:13 */
  24. BEGIN:
  25. PARSE UPPER SOURCE env .
  26.  
  27. IF env = 'CMS' THEN
  28.    DO
  29.    ECHO_OFF = '*CP SET MSG OFF'
  30.    ECHO_ON = 'CP SET MSG ON'
  31.    ECHO_OFF
  32.    HI='1DE8'x
  33.    LO='1D60'x
  34.    CLEAR_SCR = 'VMFCLEAR'
  35.    END
  36. ELSE IF env = 'OS/2' THEN
  37.    DO
  38.    ECHO_OFF = '@ECHO OFF'
  39.    ECHO_ON = 'ECHO ON'
  40.    ECHO_OFF
  41.    HI='1B'x || '[1m'
  42.    LO='1B'x || '[0m'
  43.    'ANSI ON'
  44.    SAY LO
  45.    CLEAR_SCR = 'CLS'
  46.    END
  47. ELSE
  48.    DO
  49.    SAY 'The MONDAY adventure has not been ported to' env'.'
  50.    EXIT
  51.    END
  52.  
  53. TOT_NOUNS = 22
  54. PAUSE=3
  55. CLEAR_SCR
  56. CALL TITLE
  57. CLEAR_SCR
  58. START:
  59. DO FOREVER
  60.    CALL QTIME
  61.    SELECT
  62.       WHEN R = 1 THEN CALL ROOM1
  63.       WHEN R = 2 THEN CALL ROOM2
  64.       WHEN R = 3 THEN CALL ROOM3
  65.       WHEN R = 4 THEN CALL ROOM4
  66.       WHEN R = 5 THEN CALL ROOM5
  67.       WHEN R = 6 THEN CALL ROOM6
  68.       WHEN R = 7 THEN CALL ROOM7
  69.       WHEN R = 8 THEN CALL ROOM8
  70.       WHEN R = 9 THEN CALL ROOM9
  71.       WHEN R = 10 THEN CALL ROOM10
  72.       WHEN R = 11 THEN CALL ROOM11
  73.       WHEN R = 12 THEN CALL ROOM12
  74.       WHEN R = 13 THEN CALL ROOM13
  75.       WHEN R = 14 THEN CALL ROOM14
  76.       WHEN R = 15 THEN CALL ROOM15
  77.       WHEN R = 16 THEN CALL ROOM16
  78.       WHEN R = 17 THEN CALL ROOM17
  79.       WHEN R = 18 THEN CALL ROOM18
  80.       WHEN R = 19 THEN CALL ROOM19
  81.       WHEN R = 20 THEN CALL ROOM20
  82.       WHEN R = 21 THEN CALL ROOM21
  83.       WHEN R = 22 THEN CALL ROOM22
  84.       WHEN R = 23 THEN CALL ROOM23
  85.       OTHERWISE CALL END_ROOM
  86.    END
  87.    SAy
  88.    CALL CAN_SEE
  89.    CALL CAN_GO
  90.    CALL COMMAND
  91. END
  92. EXIT
  93. QTIME:
  94. CLEAR_SCR
  95. TIMES = '0:00'
  96. TIMES = OVERLAY(HOUR,TIMES,1,1)
  97. IF MINUTES>9 THEN TIMES = OVERLAY(MINUTES,TIMES,3,2)
  98. ELSE
  99. IF MINUTES<10 THEN TIMES = OVERLAY(MINUTES,TIMES,4,1)
  100. say left(LOC.R,30) copies(' ',24)'Time: 'TIMES' pm'
  101. say
  102. return
  103. CAN_SEE:
  104. SEE = ''
  105. FLG=0
  106. IF R>0 & R<7 then FLG=1
  107. ELSE
  108. IF R=11 THEN FLG=1
  109. ELSE
  110. IF R>15 & R<21 THEN FLG=1
  111. IF FLG=1 THEN OBJECT.21.2=R
  112. DO I = 1 to TOT_NOUNS
  113.    If OBJECT.I.2 = R THEN SEE = SEE||OBJECT.I.1||'   '
  114. END I
  115. IF SEE = '' THEN SEE = 'Nothing of Interest'
  116. Say 'You can see: 'SEE
  117. Say
  118. RETURN
  119. CAN_GO:
  120. GO=''
  121. PARSE UPPER VAR EXIT.R NOR SOU EAS WES
  122. IF NOR = 'N' THEN GO = GO||'NORTH   '
  123. IF SOU = 'S' THEN GO = GO||'SOUTH   '
  124. IF EAS = 'E' THEN GO = GO||'EAST   '
  125. IF WES = 'W' THEN GO = GO||'WEST'
  126. IF GO='' THEN GO='???'
  127. SAY 'Obvious exits: 'GO
  128. Say copies('=',70)
  129. Say
  130. RETURN
  131. COMMAND:
  132. N = 0
  133. V = 0
  134. FLAG = 0
  135. If MSG = 0 then
  136. DO
  137.    MSG = 1
  138.    SAY 'Welcome to 'HI'The Monday Adventure'LO' ( NOVICE LEVEL )'
  139.    SAY '(C)opyright 1986 / 1987 BY: MIKEL F. RICE (MIKEL @ UWF)'
  140.    SAY 'Ported to OS/2 by Michael J. Antonio (713221.1742@CompuServe.com)'
  141.    SAY 'Dedicated to: Tanya E. Bortels'
  142. END
  143. rnd = random(1,6)
  144. if rnd = 1 then command = 'What next?'
  145. if rnd = 2 then command = 'What will you do?'
  146. if rnd = 3 then command = 'Now what?'
  147. if rnd = 4 then command = 'Your request?'
  148. if rnd = 5 then command = 'What do you want to do?'
  149. if rnd = 6 then command = 'What will you try now?'
  150. SAY
  151. say command
  152. PARSE UPPER PULL instruct
  153. say
  154. If instruct = 'I' then instruct = 'INV'
  155. parse var instruct verbin nounin
  156. verb = left(verbin,3)
  157. noun = left(nounin,3)
  158. If verb = 'LOO' & noun = '' then SIGNAL START
  159. IF (VERB ='NOR' | VERB='SOU') | (VERB ='EAS' | VERB ='WES')
  160. THEN SIGNAL GO
  161. ELSE
  162. If (VERB= 'N' | VERB= 'S') | (VERB= 'E' | VERB= 'W') THEN SIGNAL GO
  163. ELSE
  164. IF VERB = 'U' | VERB = 'D' THEN SIGNAL GO
  165. select
  166.    when VERB = 'QUI' then SIGNAL QUIT
  167.    when VERB = 'INV' then CALL INVENTORY
  168.    when VERB = 'HEL' then CALL HELP
  169.    when VERB = 'VER' THEN CALL VERBS
  170.    when VERB = 'DIG' then CALL DIG
  171.    WHEN VERB = 'PAU' THEN PAUSE = NOUN
  172.    otherwise flag = 1
  173. END
  174. If flag = 0 then signal delay
  175. If length(instruct) < 4
  176. then DO
  177.    Say "WHAT??? I don't understand that."
  178.    SIGNAL DELAY
  179. END
  180. If NOUN = '' THEN
  181. DO
  182.    SAY 'That verb requires a NOUN.'
  183.    Signal DELAY
  184. END
  185. If verb = 'ENT' THEN VERB = 'GO '
  186. If verb = 'TAK' THEN VERB = 'GET'
  187. If verb = 'EXA' THEN VERB = 'LOO'
  188. If verb = 'SMA' THEN VERB = 'BRE'
  189. If verb = 'BUI' THEN VERB = 'MAK'
  190. If verb = 'CAR' THEN VERB = 'CUT'
  191. If verb = 'PUM' THEN VERB = 'INF'
  192. If verb = 'PUS' THEN VERB = 'MOV'
  193. If verb = 'ROW' THEN VERB = 'PAD'
  194. If verb = 'STA' THEN VERB = 'KIL'
  195. V=POS(VERB,VLIST)
  196. N=POS(NOUN,NLIST)
  197. IF V=0 THEN
  198. DO
  199.    SAY "I don't understand that VERB!"
  200.    SIGNAL DELAY
  201. END
  202. ELSE
  203. V =(V%3)+1
  204. IF N=0 THEN
  205. DO
  206.    SAY "I don't understand that NOUN!"
  207.    SIGNAL DELAY
  208. END
  209. ELSE
  210. N =(n%3)+1
  211. SELECT
  212.    WHEN V = 1 THEN SIGNAL GO
  213.    WHEN V = 2 then CALL GET
  214.    WHEN V = 3 THEN CALL LOOK
  215.    WHEN V = 4 THEN CALL DROP
  216.    WHEN V = 5 THEN CALL OPEN
  217.    WHEN V = 6 THEN CALL READ
  218.    WHEN V = 7 THEN CALL UNLOCK
  219.    WHEN V = 8 THEN CALL MOVE
  220.    WHEN V = 9 THEN CALL CLIMB
  221.    WHEN V = 10 THEN CALL BREAK
  222.    WHEN V = 11 THEN CALL MAKE
  223.    WHEN V = 12 THEN CALL DIG
  224.    WHEN V = 14 THEN CALL CUT
  225.    WHEN V = 15 THEN CALL PADDLE
  226.    WHEN V = 16 THEN CALL INFLATE
  227.    WHEN V = 17 THEN SAY "This is a non-violent adventure!!"
  228.    OTHERWISE NOP
  229. END
  230. DELAY:
  231. CALL TIMER
  232. CALL WAIT PAUSE
  233. RETURN
  234. TIMER:
  235. MINUTES = MINUTES + 1
  236. If MINUTES = 60
  237. THEN DO
  238.    MINUTES = 0
  239.    HOUR = HOUR + 1
  240. END
  241. IF HOUR = 4 & MINUTES >= 30 THEN SIGNAL END_ROOM
  242. IF HOUR =4 & MINUTES =20 THEN
  243.    SAY 'You feel very weak...Watch the time.'
  244. IF HOUR =4 & MINUTES =10 THEN
  245.    SAY 'You feel very hungry!'
  246. IF HOUR =4 & MINUTES >26 THEN
  247.    SAY 'Gasp...pant...cough!'
  248. RETURN
  249. INVENTORY:
  250. SAY
  251. ITEM =''
  252. DO I = 1 to TOT_NOUNS
  253.    IF OBJECT.I.2 = 50 THEN ITEM = ITEM||OBJECT.I.1'  '
  254. END I
  255. IF ITEM = '' THEN ITEM = 'NOTHING!'
  256. SAY 'You are carrying: 'ITEM
  257. RETURN
  258. HELP:
  259. IF R=6 THEN SAY 'Try examining things...'
  260. ELSE
  261. IF R=9 THEN SAY "If at first you don't succeed..."
  262. ELSE
  263. IF R=12 THEN SAY 'I once carved my name in a tree stump!'
  264. ELSE
  265. IF R=14 THEN
  266.    SAY 'Look a tree!'
  267. ELSE
  268. IF R=21 THEN
  269.    SAY 'LOOK at the rope!'
  270. ELSE
  271. DO
  272.    RND=RANDOM(1,6)
  273.    SELECT
  274.       WHEN RND=1 THEN SAY "CAN'T YOU DO ANYTHING ON YOUR OWN?"
  275.       WHEN RND=2 THEN SAY "I'M AS CONFUSED AS YOU ARE!"
  276.       WHEN RND=3 THEN SAY "TRY EXAMINING THINGS..."
  277.       WHEN RND=4 THEN SAY "WHO IS PLAYING THIS GAME, ME OR YOU?"
  278.       WHEN RND=5 THEN SAY "NOT NOW I'M BUSY!"
  279.       OTHERWISE SAY "TYPE 'VERBS' FOR MORE HELP!"
  280.    END
  281. END
  282. RETURN
  283. GO:
  284. FLG = 0
  285. VB = LEFT(VERB,1)
  286. NN = LEFT(NOUN,1)
  287. SELECT
  288.    WHEN ((NOUN="SHE" | NOUN="DOO") & (OPENED=1 & R=19)) THEN R=22
  289.    WHEN ((NOUN="SHE" | NOUN="DOO") & (OPENED=0 & R=19)) THEN CALL DOOR
  290.    WHEN R=22 & (VB='E' | NN='E') THEN R=19
  291.    WHEN R=23 & (VB='W' | NN='W') THEN R=19
  292.    WHEN NOUN="RAF" THEN CALL INRAFT
  293.    WHEN NOR='N' & (VB ='N' | NN='N') THEN R = R + 1
  294.    WHEN SOU='S' & (VB ='S' | NN='S') THEN R = R - 1
  295.    WHEN EAS='E' & (VB ='E' | NN='E') THEN R = R + 5
  296.    WHEN WES='W' & (VB ='W' | NN='W') THEN R = R - 5
  297.    OTHERWISE FLG = 1
  298. END
  299. IF (VB='D' | VB='U') | (NN='D' | NN='U') THEN
  300. DO
  301.    SAY 'TRY CLIMB instead...'
  302.    FLG = 0
  303. END
  304. IF FLG=1 then
  305. DO
  306.    SAY 'There is no way to go in that direction!'
  307.    SIGNAL DELAY
  308. END
  309. ELSE
  310. CALL TIMER
  311. SIGNAL START
  312. DOOR:
  313.    IF OPENED=0 & UNLOCKED=0 THEN
  314.    DO
  315.       SAY 'The door is locked!'
  316.    END
  317.    ELSE
  318.    IF OPENED=0 & UNLOCKED=1 THEn
  319.    Do
  320.       SAY 'The shed door is closed!'
  321.    END
  322.    CALL WAIL PAUSE
  323.    RETURN
  324.    LOOK:
  325.    IF N=21 THEN OBJECT.N.2 = R
  326.    If N>16 & n<21 THEN SAY OBJECT.N.3
  327.    ELSE
  328.    IF OBJECT.N.2 \= R & Object.n.2 \= 50
  329.    THEN SAY "I don't see the "OBJECT.N.1" here now..."
  330.    ELSE SAY OBJECT.N.3
  331.    RETURN
  332.    GET:
  333.    COUNT = 0
  334.    DO I = 1 to TOT_NOUNS
  335.       If OBJECT.I.2 = 50 then COUNT = COUNT + 1
  336.    END I
  337.    IF COUNT > 4 THEN
  338.    DO
  339.       RND = RANDOM(1,3)
  340.       SELECT
  341.          WHEN RND=1 THEN
  342.             SAY "You can't carry anymore. Try 'INVENTORY'"
  343.          WHEN RND=2 THEN
  344.             SAY 'You are carrying too much stuff. Try "INVENTORY"'
  345.          WHEN RND=3 THEN
  346.             SAY 'You have too much. Try "INVENTORY"'
  347.          OTHERWISE NOP
  348.       END
  349.       RETURN
  350.    END
  351.    If OBJECT.N.2 =50 THEN SAY "You're already carrying that!"
  352.    ELSE
  353.    If OBJECT.N.2 \=R THEN SAY "I don't see "OBJECT.N.1" here."
  354.    If OBJECT.N.2 = R THEN
  355.    DO
  356.       SELECT
  357.          WHEN N=3 THEN Say 'It is too heavy to lift, maybe you can move it.'
  358.          WHEN N=4 THEN Say "Don't be stupid!"
  359.          WHEN N=8 THEN Say 'It is tied to the tree with a strong knot.'
  360.          WHEN N=12 THEN Say 'It is cemented to the ground.'
  361.          WHEN N=13 THEN Say 'It is hinged to the shed.'
  362.          WHEN N=14 THEN Say "Don't be silly!"
  363.          WHEN N=15 & RAFT=1 THEN 
  364.             SAY "You can't carry the raft if it's inflated"
  365.          WHEN n=21 THEN SAY 'Leave the sand alone...'
  366.          OTHERWISE
  367.          OBJECT.N.2 = 50
  368.          SAY 'Okay! You now have the 'OBJECT.N.1
  369.       END
  370.    END
  371.    RETURN
  372.    DROP:
  373.    If OBJECT.N.2 \= 50 THEN SAY "You aren't holding that."
  374.    ELSE
  375.    DO
  376.       SAY 'Okay! 'OBJECT.n.1' has been dropped!.'
  377.       OBJECT.N.2 = R
  378.    END
  379.    RETURN
  380.    OPEN:
  381.    FLG=0
  382.    IF N=1 & OBJECT.N.2=50 & OBJECT.2.2=0 then
  383.    DO
  384.       SAY 'Hey! You found something!'
  385.       OBJECT.1.3= "It's just an empty bottle"
  386.       OBJECT.2.2=R
  387.       FLG=1
  388.    END
  389.    Else
  390.    If N=1 & OBJECT.N.2\=50 then
  391.    DO
  392.       Say "You don't have that item!"
  393.       FLG=1
  394.    END
  395.    ELSE
  396.    IF N=1 & OBJECT.2.2>0 THEN
  397.    Do
  398.       SAY 'It is already open!'
  399.       FLG=1
  400.    END
  401.    If N=10 & OBJECT.N.2=50 THEN
  402.    DO
  403.       SAY 'Hey! You found something!'
  404.       OBJECT.11.2=R
  405.       FLG=1
  406.    END
  407.    Else
  408.    If N=10 then
  409.    DO
  410.       Say "You don't have that item!"
  411.       FLG=1
  412.    END
  413.    IF R\=19 THEN FLG=FLG
  414.    ELSE
  415.    If (N=12 | N=13) & (UNLOCKED=1 & OPENED=0) THEN
  416.    DO
  417.       SAY 'The door to the shed is now open!'
  418.       OPENED=1
  419.       FLG=1
  420.    END
  421.    ELSE
  422.    IF (N=12 | N=13) & UNLOCKED=0 THEN
  423.    DO
  424.       SAY 'The door to the shed is locked!'
  425.       FLG=1
  426.    END
  427.    If FLG=0 THEN SAY "I must be stupid, but I can't open that!"
  428.    RETURN
  429.    READ:
  430.    FLG=0
  431.    IF N=2 & OBJECT.N.2=50 then
  432.    Do
  433.       Say 'Hello there. I just want to take this time (1 turn) to wish you'
  434.       Say 'good luck! For some extra help type "VERBS"...  Mikel Rice!'
  435.       FLG=1
  436.       CALL WAIT 3
  437.    End
  438.    Else
  439.    If N=2 & OBJECT.2.2\=50 THEN
  440.    DO
  441.       SAY "You don't have that!"
  442.       FLG=1
  443.    END
  444.    If N=1 THEN
  445.    DO
  446.       SAY 'The label has washed off...'
  447.       FLG=1
  448.    END
  449.    If N=4 & OBJECT.N.2=R THEN
  450.    Do
  451.       SAY 'Carved on the stump:  The key lies under the field of flowers!'
  452.       FLG=1
  453.    END
  454.    Else
  455.    If N=4 & FLG=0 THEN SAY "I don't see a stump here..."
  456.    If N=10 & (OBJECT.N.2=50 | OBJECT.N.2=R) THEN
  457.    DO
  458.       SAY 'It top reads: ACME Hardware Co.'
  459.       FLG=1
  460.    END
  461.    ELSE
  462.    IF N\=22 & FLG=0 THEN SAY 'How can you read that?'
  463.    ELSE
  464.    IF FLG=0 THEN CALL MAP
  465.    RETURN
  466.    UNLOCK:
  467.    IF R\=19 THEN SAY "I don't see a shed here!"
  468.    ELSE
  469.    If (N=12 | N=13) & UNLOCKED=1 THEN SAY 'The shed is already unlocked!'
  470.    ELSE
  471.    If (N=12 | N=13) & OBJECT.6.2\=50 THEN SAY "You don't have the key!"
  472.    ELSE
  473.    If (N=12 | N=13) & (UNLOCKED=0 & OBJECT.6.2=50) THEN
  474.    DO
  475.       Say "The key fits. You turn it and unlock the door to the shed."
  476.       UNLOCKED=1
  477.    END
  478.    ELSE SAY "I must be stupid, but I Can't unlock that!"
  479.    RETURN
  480.    MOVE:
  481.    FLG=0
  482.    If (N=4 | N=12) | (N=13 | N=14) THEN
  483.    DO
  484.       SAY 'Only in your dreams...'
  485.       FLG=1
  486.    END
  487.    IF (N=3 & R=7) & KNIFE=0 THEN
  488.    DO
  489.       SAY 'Hey! You found something!'
  490.       KNIFE=1
  491.       OBJECT.5.2=R
  492.       FLG=1
  493.    END
  494.    IF OBJECT.N.2\=R THEN
  495.    Do
  496.       Say "I don't see that here."
  497.       FLG=1
  498.    END
  499.    If FLG=0 then say "Okay but nothing happened!"
  500.    RETURN
  501.    CLIMB:
  502.    IF R=14 & N=14 THEN
  503.    Do
  504.       Say 'Ugh...That was hard work....'
  505.       R=21
  506.    END
  507.    ElSE
  508.    IF R=21 & (N=8 | N=14) THEN
  509.    DO
  510.       SAY 'PANT...That was tough....'
  511.       R=14
  512.    END
  513.    ELSE SAY 'Why do you want to climb that?'
  514.    RETURN
  515.    BREAK:
  516.    IF N=1 & OBJECT.N.2=50 & OBJECT.2.2=0 then
  517.    DO
  518.       SAY 'Hey! You found something!'
  519.       OBJECT.2.2=R
  520.       OBJECT.N.2=0
  521.    END
  522.    ELSE
  523.    IF N=1 & OBJECT.N.2\=50 tHEN SAY "I don't have that."
  524.    ELSE SAY "Don't be so destructive!!"
  525.    RETURN
  526.    MAKE:
  527.    If N\=16 THEN SAY "I must be stupid, but I just don't understand you!"
  528.    ELSE
  529.    If OAR=0 & (OBJECT.5.2=50 & OBJECT.9.2=50) THEN
  530.    DO
  531.       SAY 'Using the knife you make a primitive paddle from the driftwood'
  532.       OBJECT.9.2=0
  533.       OBJECT.16.2=50
  534.       OAR=1
  535.    END
  536.    ELSE
  537.    If OAR=0 & (OBJECT.5.2\=50 | OBJECT.9.2\=50)
  538.    THEN Say "You don't have enough material to make a paddle."
  539.    ELSE
  540.    If OAR=1 then Say 'you already made a paddle.'
  541.    ELSE
  542.    IF OAR=2 THEN SAY "You can't make a paddle with a broken knife!!"
  543.    RETURN
  544.    DIG:
  545.    IF R\=9 & OBJECT.7.2=50 THEN SAY "All all you found is dirt..."
  546.    ELSE
  547.    IF OBJECT.7.2\=50 THEN SAY "You don't have a shovel!"
  548.    ELSE
  549.    IF KEY=0 THEN
  550.    DO
  551.       SAY 'You dug a small hole but found nothing...'
  552.       SAY 'Wait! Look there is something...'
  553.       KEY=1
  554.       MAP=1
  555.       OBJECT.22.2=R
  556.    END
  557.    ELSE
  558.    IF KEY=1 then
  559.    Do
  560.       SAY "Hey! You found something!"
  561.       OBJECT.6.2=R
  562.       KEY=2
  563.    END
  564.    RETURN
  565.    CUT:
  566.    IF N=8 & OBJECT.5.2=50 & R=21 THEN 
  567.       SAY 'If you cut the rope how will you get down?'
  568.    ELSE
  569.    IF (N=14 | N=4) & (OBJECT.5.2=50 & R=14) THEN
  570.    DO
  571.       Say 'The knife can cut most types of wood just not oak!'
  572.       SAY 'The hard oak wood busted the knife!'
  573.       OAR=2
  574.    END
  575.    ELSE
  576.    IF N=9 THEN
  577.    DO
  578.       N=16
  579.       SIGNAL MAKE
  580.    END
  581.    ELSE
  582.    IF n=16 then SIGNAL MAKE
  583.    ELSE
  584.    If n=4 THEN SAY "Aw...leave the poor tree stump alone!"
  585.    ELSE SAY "Don't be so destructive!!"
  586.    RETURN
  587.    PADDLE:
  588.    IF R\=23 then say "You aren't in the raft!"
  589.    ELSE
  590.    If OBJECT.16.2\=50 THEN 
  591.       SAY "You don't have a paddle! Maybe you could MAKE one."
  592.    ELSE SIGNAL WIN_ROOM
  593.    RETURN
  594.    INFLATE:
  595.    If N\=15 THEN SAY "I don't know how to inflate that!"
  596.    ELSE
  597.    IF OBJECT.11.2\=50 THEN SAY "You don't have a pump!"
  598.    ELSE
  599.    If OBJECT.15.2=50 THEN SAY "You can't inflate it while holding it!"
  600.    ELSE
  601.    IF (R>6 & R<10) | (R>11 & R<15) | (r>20)
  602.    THEN SAY "You must be at the beach to inflate the raft!"
  603.    ELSE
  604.    IF RAFT=1 then SAY "It's already inflated!"
  605.    ELSE
  606.    DO
  607.       SAY 'Phfsss...phfsss...phfsss...Okay you inflated it!'
  608.       OBJECT.15.1='inflated RAFT'
  609.       RAFT=1
  610.       MINUTES=MINUTES+1
  611.    END
  612.    RETURN
  613.    INRAFT:
  614.    IF RAFT=0 THEN SAY "It isn't inflated!"
  615.    ELSE
  616.    IF OBJECT.15.2\=r THEN SAY "The raft isn't here!!!"
  617.    ELSE
  618.    IF OBJECT.5.2\=50 THEN
  619.    Do
  620.       R=23
  621.       SIGNAL START
  622.    end
  623.    ELSE
  624.    DO
  625.       SAY "Oh no! The knife punctured the raft and you can't swim!!"
  626.       CALL WAIT 3
  627.       SIGNAL END_ROOM
  628.    END
  629.    RETURN
  630.    ROOM1:
  631.    Say 'The beach is long, strecthing out of sight to the east and north. The'
  632.    Say 'sand is cool and wet and feels good between your toes.',
  633.        'The blue waters'
  634.    Say 'of the ocean are to the south and west.'
  635.    RETURN
  636.    ROOM2:
  637.    SAY 'The white sand strecthes onward to the north and to the south.',
  638.        'The sun'
  639.    Say 'makes the sand seem to glow. The blue ocean water is to the west',
  640.        'and'
  641.    Say 'there is a clearing to the east.'
  642.    RETURN
  643.    ROOM3:
  644.    SAY 'More white sandy beaches that seem to go on and on. This island would'
  645.    Say 'be a great place to build a fancy summer resort. The ocean is to the'
  646.    Say 'west and to the east you see a group of trees.'
  647.    RETURN
  648.    ROOM4:
  649.    SAY 'The white sand is hot to your bare feet. A quick wave washes',
  650.        'up around'
  651.    SAY 'your ankles then ebbs back into the sea. The sun sparkles upon',
  652.        'the water'
  653.    Say 'in ever changing patterns. You can see a field to the east.'
  654.    RETURN
  655.    ROOM5:
  656.    Say 'The beach runs out of sight to the south and to the east.',
  657.        'Water is to the'
  658.    SAY 'north and west of you. Far out on the horizon you can barely make',
  659.        'out a'
  660.    Say 'ship sailing slowly through the choppy seas.'
  661.    RETURN
  662.    ROOM6:
  663.    Say 'On a beautiful white beach of a small deserted island. Just a few',
  664.        'yards'
  665.    Say 'off shore, smashed upon some outcroping rocks, is the remains of',
  666.        'your boat'
  667.    SAY 'You notice that the sun feels really hot today.'
  668.    RETURN
  669.    ROOM7:
  670.    Say 'A small clearing just beyond the white beaches. The grass is',
  671.        'growing in'
  672.    Say 'patches of green and brown. Overhead some sea gulls float on the',
  673.        'tropical'
  674.    Say 'breezes. To the north and east you see trees and the beach is to the'
  675.    Say 'south and west.'
  676.    RETURN
  677.    ROOM8:
  678.    Say 'Standing in the woods under several tall trees. The trees filter',
  679.        'the hot'
  680.    Say 'sun creating a cool shade. The ground is blanketed with a varity',
  681.        'of colored'
  682.    Say 'leaves. It is very peaceful here.'
  683.    RETURN
  684.    ROOM9:
  685.    Say 'The grass is a lush green and the meadow is dotted with white',
  686.        'and yellow'
  687.    Say 'daisies and violet snap-dragons. The air is fresh and smells',
  688.        'sweet with'
  689.    Say 'the fragrance of the flowers. A gentle breeze ruffles the grasses.'
  690.    RETURN
  691.    ROOM10:
  692.    Say 'The beach is covered with small pebbles washed smooth by the',
  693.        'ocean tides'
  694.    Say 'The wet pebbles sparkle in the shinning sunlight. A cool breeze',
  695.        'blows of'
  696.    Say 'the dark blue water. A fiddler crab darts back and forth across',
  697.        'the sand'
  698.    RETURN
  699.    ROOM11:
  700.    Say 'Sand, sand, and more sand. The beach runs on to the east and to',
  701.        'the west.'
  702.    Say 'The sun is blocked out by a cloud for a short moment but it soon',
  703.        'drifts'
  704.    Say 'past and once again the sun beats down upon you. You can see some',
  705.        'trees'
  706.    say 'up to the north and the ocean is to the south.'
  707.    RETURN
  708.    ROOM12:
  709.    Say 'A small grove of trees on a slight enbankment. The beach is down',
  710.        'to the'
  711.    Say 'south and to the East. The leaves on the trees are a mixture of',
  712.        'reds and'
  713.    Say 'greens. A soft breeze shakes several leaves from the branches and',
  714.        'they'
  715.    Say 'flutter to the ground.'
  716.    RETURN
  717.    ROOM13:
  718.    Say 'You are surrounded by tall trees. The trees cast long eerie',
  719.        'shadows upon'
  720.    Say 'the ground and the limbs seem to be reaching out to grab you.',
  721.        'You begin'
  722.    Say 'to whistle and look nervously around. You jump as a twig snaps',
  723.        'beneath'
  724.    Say 'your feet. A quick chill runs down your spine.'
  725.    RETURN
  726.    ROOM14:
  727.    say 'The trees have thinned out and more sunlight filters through. A',
  728.        'tall oak'
  729.    Say 'stands amidst the smaller trees like a proud parent. There is a',
  730.        'wall of'
  731.    Say 'thick bushes and underbrush to the east. A bird sings a happy',
  732.        'tune from'
  733.    Say "it's unseen perch high above you."
  734.    RETURN
  735.    ROOM15:
  736.    Say 'The wet sand feels cool to your feet. Lying on the sand is a',
  737.        'small orange'
  738.    Say 'starfish. A wave rolls up and pulls it back into the sea. Small',
  739.        'pebbles'
  740.    Say 'a beautiful sea shells are scattered along the shore. You look',
  741.        'out over'
  742.    SAY 'the waves and see a school of dolphins swimming around.'
  743.    RETURN
  744.    Room16:
  745.    SAY 'A tidal pool has formed in the scattered rock formations. You',
  746.        'wade out'
  747.    SAY 'into the shallow water and feel refreshed. For some reason you start'
  748.    SAY 'thinking how good a fish sandwhich would taste now. You notice some'
  749.    SAY 'small minnows darting around in the pool. You try to catch them but'
  750.    SAY 'they are too fast for you.'
  751.    RETURN
  752.    Room17:
  753.    SAY 'The beach is long, strecthing out of sight to the North and',
  754.        'South. The'
  755.    SAY 'sand is cool and wet and feels good between your toes. The blue',
  756.        'waters'
  757.    SAY 'of the ocean are to the east and you see some trees to the west.'
  758.    RETURN
  759.    Room18:
  760.    SAY 'So much white sand all around you. You begin to wish you had',
  761.        'never seen'
  762.    SAY 'a beach. Suddenly you notice a person lying on a towel soaking up the'
  763.    SAY 'warm rays of the sun. You rub your eyes and realize your mind is',
  764.        'playing'
  765.    Say 'tricks on you because there is no one there only sand...'
  766.    RETURN
  767.    Room19:
  768.    Say 'The ground here is more sturdy and the walking is easier here.',
  769.        'You see'
  770.    Say 'a rusted metal shed that was once a boathouse. Time and weather have'
  771.    Say 'peeled most of the paint off but it seems to be holding together. To'
  772.    Say 'the west is a length of thick underbrush which makes traveling',
  773.        'in that'
  774.    Say 'direction impossible. The ocean is present to the east.'
  775.    RETURN
  776.    ROOM20:
  777.    Say 'This is the northeast corner of the island. The tide appears to be',
  778.        'going'
  779.    Say 'out now. The sun is getting ever lower in the sky and the',
  780.        'temperature is'
  781.    Say 'beginning to drop. Your stomach growls loudly and that fish sandwhich'
  782.    Say 'comes to mind again.'
  783.    RETURn
  784.    ROOM21:
  785.    Say 'You step cautiously around the treehouse until you decide that',
  786.        'it is well'
  787.    Say 'built and then you relax. From your vantage point you can see the',
  788.        'entire'
  789.    Say 'island. To the north you see the beach, to the west you see a meadow,'
  790.    Say 'to the South you see more trees, and to the east you see the beach',
  791.        'and'
  792.    Say 'there appears to be a small building there. You feel like a kid again'
  793.    Say 'and give your best tarzan yell...'
  794.    RETURN
  795.    ROOM22:
  796.    Say 'The shed is small and appears to have been unused for a long',
  797.        'time. As you'
  798.    Say 'enter a large rat scurries off into a dark corner. Cobwebs hang',
  799.        'from each'
  800.    Say 'of the four corners. The shed is mostly empty save a few usless',
  801.        'items that'
  802.    Say 'are scattered about. The door squeaks as it sways in the wind.'
  803.    RETURN
  804.    ROOM23:
  805.    Say 'You are in the inflatable two-man raft. The waves gently rock the',
  806.        'bright'
  807.    Say 'yellow raft on the swelling billows. The raft seems to holding',
  808.        'the air'
  809.    Say 'there are no apparent leaks. A couple of curious sea gulls swoop',
  810.        'in for'
  811.    Say 'a closer inspection. Funny how sea gulls remind you of fried Chicken!'
  812.    RETURN
  813. END_ROOM:
  814. CLEAR_SCR
  815. SAY 'In a pine coffin six feet under!'copies(' ',28)'Time: Eternity'
  816. SAY
  817. SAY 'The coffin is cold and damp. The air is foul and musty. Mildew and other'
  818. Say 'fungi have begun to cultivate on your clothing. The roses on your grave'
  819. Say 'have long since wilted and died. Already the small sprouts of new grass'
  820. Say 'have began to grow in the fresh top soil. All is cold and lifeless.'
  821. say
  822. SAY CENTER(HI'Sorry you have lost his adventure...'LO,70)
  823. SIGNAL QUIT
  824. WIN_ROOM:
  825. CLEAR_SCR
  826. R=24
  827. MINUTES=MINUTES+3
  828. LOC.24='On a Coast Guard Cutter'
  829. CALL QTIME
  830. SAY 'After paddling around in the bright yellow raft for a while you were',
  831.     'spotted'
  832. SAY 'by a Coast Guard Vessel. You were brought on board, given clean',
  833.     'clothes, fed'
  834. SAY 'a big meal, and then taken home! You parents were so glad to see',
  835.     'you alive'
  836. SAY 'That they forgot all about the new boat you wrecked!'
  837. SAY
  838. SAY CENTER(HI'CONGRATULATIONS!!! You have solved this adventure!'LO,72)
  839. SIGNAL QUIT
  840. TITLE:
  841. CLEAR_SCR
  842. SAY CENTER(HI'MIKEL RICE PROUDLY PRESENTS',71)
  843. SAY
  844. SAY '                                 THE'
  845. SAY '  MM      MM                         DDDDDDD                        '
  846. SAY '  M M    M M                         D      D                       '
  847. SAY '  M  M  M  M             NN       N  D       D             Y       Y'
  848. SAY '  M   MM   M             N N      N  D       D              Y     Y '
  849. SAY '  M        M             N  N     N  D       D    AAAAA      Y   Y  '
  850. SAY '  M        M  OOOOOOOOO  N   N    N  D       D   A     A      Y Y   '
  851. SAY '  M        M  O       O  N    N   N  D      D   A       A      Y    '
  852. SAY '  M        M  O       O  N     N  N  DDDDDDD    A       A      Y    '
  853. SAY '              O       O  N      N N             AAAAAAAAA      Y    '
  854. SAY '              O       O  N       NN             A       A      Y    '
  855. SAY '              O       O                         A       A           '
  856. SAY '              OOOOOOOOO                         A       A           '
  857. SAY '                              ADVENTURE!'
  858. SAY
  859. SAY
  860. R = 6
  861. HOUR = 3
  862. MINUTES = 25
  863. MSG = 0
  864. RAFT=0
  865. UNLOCKED=0
  866. OPENED=0
  867. KNIFE=0
  868. OAR=0
  869. KEY=0
  870. MAP=0
  871. VLIST='GO GETLOODROOPEREAUNLMOVCLIBREMAKDIGHELCUTPADINFKILQUI'
  872. NLIST='BOTNOTROCSTUKNIKEYSHOROPDRIBOXPUMSHEDOOTRERAFPADNORSOUEASWES'
  873. NLIST=NLIST||'SANMAP'
  874. LOC.1 = 'A sandy white beach'
  875. EXIT.1 = 'N * E *'
  876. LOC.2 = 'A sandy white beach'
  877. EXIT.2 = 'N S E *'
  878. LOC.3 = 'A sandy white beach'
  879. EXIT.3 = 'N S E *'
  880. LOC.4 = 'A sandy white beach'
  881. EXIT.4 = 'N S E *'
  882. LOC.5 = 'A sandy white beach'
  883. EXIT.5 = '* S E *'
  884. LOC.6 = 'A sandy white beach'
  885. EXIT.6 = 'N * E W'
  886. LOC.7 = 'A small clearing'
  887. EXIT.7 = 'N S E W'
  888. LOC.8 = 'In the woods'
  889. EXIT.8 = 'N S E W'
  890. LOC.9 = 'A grassy field'
  891. exit.9 = 'n s e w'
  892. LOC.10 = 'A pebble covered beach'
  893. exit.10 = '* s e w'
  894. LOC.11 = 'A sandy white beach'
  895. exit.11 = 'N * E W'
  896. LOC.12 = 'In the woods'
  897. EXIT.12 = 'n s e w'
  898. LOC.13 = 'In the woods'
  899. EXIT.13 = 'n s e w'
  900. LOC.14 = 'A peacful orchard'
  901. exit.14 = 'n s * w'
  902. LOC.15 = 'A pebble covered beach'
  903. exit.15 = '* s e w'
  904. LOC.16 = 'A rocky tidal pool'
  905. exit.16 = 'n * * w'
  906. LOC.17 = 'A sandy white beach'
  907. EXIT.17 = 'N S * W'
  908. LOC.18 = 'A sandy white beach'
  909. EXIT.18 = 'N S * W'
  910. LOC.19 = 'A sandy white beach'
  911. exit.19 = 'N S * *'
  912. LOC.20 = 'A sandy white beach'
  913. exit.20 = '* S * W'
  914. LOC.21 = 'A little homemade treehouse'
  915. exit.21 = ''
  916. LOC.22 = 'In a rusted metal shed'
  917. EXIT.22 = '* * E *'
  918. LOC.23 = 'In the two-man raft'
  919. exit.23 = '* * * w'
  920. OBJECT.1.1 = 'BOTTLE'
  921. object.1.2 = 6
  922. OBJECT.1.3 = 'There appears to be something in it!'
  923. OBJECT.2.1 = 'NOTE'
  924. object.2.2 = 0
  925. OBJECT.2.3 = 'There is some writing on it.'
  926. OBJECT.3.1 = 'ROCK'
  927. object.3.2 = 7
  928. object.3.3 = 'It is big and seems heavy.'
  929. object.4.1 = 'tree STUMP'
  930. OBJECT.4.2 = 12
  931. object.4.3 = 'Something is carved on it.'
  932. object.5.1 = 'KNIFE'
  933. OBJECT.5.2 = 0
  934. object.5.3 = 'It is sharp enough to cut wood!'
  935. OBJECT.6.1 = 'KEY'
  936. OBJECT.6.2 = 0
  937. OBJECT.6.3 = 'It must unlock something...'
  938. object.7.1 = 'SHOVEL'
  939. OBJECT.7.2 = 21
  940. object.7.3 = "It's an ordinary shovel used for digging."
  941. OBJECT.8.1 = 'ROPE'
  942. OBJECT.8.2 = 21
  943. OBJECT.8.3 = "It's tied to the tree and is hanging to the ground."
  944. object.9.1 = 'DRIFTWOOD'
  945. OBJECT.9.2 = 5
  946. object.9.3 = "It's a piece from your wrecked boat..."
  947. OBJECT.10.1 = 'BOX'
  948. OBJECT.10.2 = 21
  949. OBJECT.10.3 = 'It is an ordinary box.'
  950. OBJECT.11.1 = 'PUMP'
  951. OBJECT.11.2 = 0
  952. OBJECT.11.3 = 'It is rusted but it still works.'
  953. object.12.1 = 'metal SHED'
  954. OBJECT.12.2 = 19
  955. object.12.3 = "It's is an old abandoned boathouse."
  956. object.13.1 = 'shed DOOR'
  957. OBJECT.13.2 = 19
  958. object.13.3 = "You see a keyhole."
  959. object.14.1 = 'Big TREE'
  960. OBJECT.14.2 = 14
  961. object.14.3 = "It looks easy to climb."
  962. object.15.1 = 'deflated RAFT'
  963. OBJECT.15.2 = 22
  964. object.15.3 = "It's a two-man raft."
  965. object.16.1 = 'PADDLE'
  966. OBJECT.16.2 = 0
  967. object.16.3 = "It's looks like a chopped up piece of driftwood..."
  968. object.17.1 = 'NORTH'
  969. OBJECT.17.2 = 0
  970. object.17.3 = "I see something, maybe I should go there!"
  971. object.18.1 = 'SOUTH'
  972. OBJECT.18.2 = 0
  973. object.18.3 = "I see something, maybe I should go there!"
  974. object.19.1 = 'EAST'
  975. OBJECT.19.2 = 0
  976. object.19.3 = "I see something, maybe I should go there!"
  977. object.20.1 = 'WEST'
  978. OBJECT.20.2 = 0
  979. object.20.3 = "I sEE SOMETHING, Maybe I should go there!"
  980. OBJECT.21.1 = 'SAND'
  981. OBJECT.21.2 = 6
  982. OBJECT.21.3 = 'It is as white as snow.'
  983. OBJECT.22.1 = 'MAP'
  984. OBJECT.22.2 = 0
  985. OBJECT.22.3 = 'Something is drawn on it!'
  986. SAY CENTER('DO YOU NEED INSTRUCTIONS? (Y/N)?'LO,72)
  987. PULL ANSWER
  988. IF ANSWER \= 'Y' THEN RETURN
  989. CLEAR_SCR
  990. say CENTER(HI'The Monday Adventure'LO,68)
  991. SAY
  992. SAY 'Oh boy, what a weekend you had... You went cruising around the bay'
  993. say 'Saturday in your NEW boat consuming a case of beer all by yourself.'
  994. say 'Last thing you remember you were doing 80 miles per hour splashing'
  995. say 'the people in canoes with your wake....'
  996. say
  997. say "You wake up on a sandy white beach, but now it is Monday! You don't"
  998. say 'remember much about Sunday, but you wrecked your boat and washed'
  999. say 'ashore on this little island. Your headache is gone but now you'
  1000. say 'are really hungry. There is nothing to eat on this island so you'
  1001. say 'will have to figure a way to get back home. There is one slight'
  1002. say 'catch. Since you have not eaten in so long you are weak and may'
  1003. say 'not survive too much longer... Hint: (You die at 4:30 pm)!'
  1004. say
  1005. say center('Press 'HI'<ENTER>'LO' to continue',68)
  1006. PULL DUMMY
  1007. CLEAR_SCR
  1008. SAY CENTER(HI'The Monday Adventure'LO,68)
  1009. SAY
  1010. Say '    In this adventure you are able to manipulate objects by using a'
  1011. Say 'VERB NOUN pair. For example if you want to pick up a book you could'
  1012. Say "type 'GET BOOK'. Then if you wanted to see what the book was about you"
  1013. Say "could 'READ BOOK'. In some situations you may want to 'OPEN BOOK' to"
  1014. Say "see if something was hidden in the book. Some VERBS do not need a NOUN"
  1015. SAY "such as 'INVENTORY' (I), 'DIG', or 'HELP'...just type the verb."
  1016. Say
  1017. Say '    In this adventure you are limited to the compass directions of:'
  1018. Say 'NORTH, SOUTH, EAST, and WEST. However, you have other less obvious'
  1019. Say "exits such as 'GO' (as in GO CAVE), or 'CLIMB' (as in CLIMB WALL)."
  1020. Say "To move in a direction you could type 'GO NORTH' or 'N' for short."
  1021. SAY 'I hope you enjoy playing the MONDAY adventure...Watch the time!!'
  1022. Say
  1023. SAY center('Press 'HI'<ENTER>'LO' to continue',68)
  1024. PULL DUMMY
  1025. RETURN
  1026. VERBS:
  1027. CLEAR_SCR
  1028. SAY
  1029. SAY CENTER(HI'VERB LIST'LO,60)
  1030. SAY
  1031. SAY '     GO             ENTER            GET             TAKE'
  1032. SAY '     LOOK           EXAMINE          DROP            OPEN'
  1033. SAY '     READ           UNLOCK           MOVE            PUSH'
  1034. SAY '     CLIMB          KILL             BREAK           SMASH'
  1035. SAY '     MAKE           BUILD            CUT             CARVE'
  1036. SAY '     INFLATE        PUMP             PADDLE          ROW '
  1037. SAY '     INVENTORY *    HELP *           DIG *           QUIT *'
  1038. SAY
  1039. say '              * - These verbs require no noun!'
  1040. SAY
  1041. SAY
  1042. SAY '               Press <enter> to continue game'
  1043. PULL DUMMY
  1044. MINUTES=MINUTES-1
  1045. RETURN
  1046. MAP:
  1047. IF MAP=0 THEN SAY "WHAT MAP??"
  1048. ELSE
  1049. IF OBJECT.22.2\=50 THEN SAY "YOU DON'T HAVE THE MAP!"
  1050. ELSE
  1051. DO
  1052.    CLEAR_SCR
  1053.    LINE1='   ====================================='
  1054.    LINE3='   | BEACH  | BEACH  | BEACH  | BEACH  |'
  1055.    LINE4='   | BEACH  | FIELD  | WOODS  | BEACH  |'
  1056.    LINE5='   | BEACH  | WOODS  | WOODS  | BEACH  |'
  1057.    LINE6='   | BEACH  | ROCK   | WOODS  | BEACH  |'
  1058.    SAY
  1059.    DO OLOOP =1 TO 5
  1060.       SAY LINE1
  1061.       IF OLOOP=1 | OLOOP=5 THEN SAY LINE3
  1062.       IF OLOOP=2 THEN SAY LINE4
  1063.       IF OLOOP=3 THEN SAY LINE5
  1064.       IF OLOOP=4 THEN SAY LINE6
  1065.    END
  1066.    SAY LINE1
  1067. END
  1068. IF MAP\=0 THEN
  1069. DO
  1070.    SAY
  1071.    SAY
  1072.    SAY 'The map is old and crudely drawn...in blood!!'
  1073.    SAy
  1074.    SAY
  1075.    SAY CENTER('Press'HI' <enter>'LO' to continue game',48)
  1076.    PULL DUMMY
  1077.    SAY
  1078.    SAY 'One moment'
  1079. END
  1080. RETURN
  1081. QUIT:
  1082. SAY
  1083. SAY CENTER(HI'Do you wish to play again? (Y/N)?'LO,70)
  1084. PULL DUMMY
  1085. IF DUMMY = 'Y' THEN SIGNAL BEGIN
  1086. CLEAR_SCR
  1087. ECHO_ON
  1088. EXIT
  1089.  
  1090. /*************************************************************************
  1091.  *
  1092.  *  Wait:  Pauses for (delay) seconds.
  1093.  *
  1094.  ************************************************************************/
  1095. Wait: PROCEDURE
  1096.    PARSE ARG delay
  1097.    
  1098.    IF \datatype(delay, "N") THEN
  1099.       delay = 1
  1100.    CALL Time("R")
  1101.    DO WHILE Time("E") < delay
  1102.       NOP
  1103.    END
  1104. RETURN
  1105. /* END */
  1106.