forked from the-infocom-files/witness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
verbs.zil
2239 lines (2022 loc) · 66.9 KB
/
verbs.zil
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"VERBS for WITNESS
Copyright (C) 1983 Infocom, Inc. All rights reserved."
;<GLOBAL COPR-NOTICE
" a transcript of interaction with WITNESS.|
WITNESS is a registered trademark of Infocom, Inc.|
Copyright (c) 1983 Infocom, Inc. All rights reserved.">
<ROUTINE V-SCRIPT ()
<PUT 0 8 <BOR <GET 0 8> 1>>
<TELL "Here begins" " a transcript of interaction with ">
<V-VERSION>
<RTRUE>>
<ROUTINE V-UNSCRIPT ()
<TELL "Here ends" " a transcript of interaction with ">
<V-VERSION>
<PUT 0 8 <BAND <GET 0 8> -2>>
<RTRUE>>
<ROUTINE V-$VERIFY ()
<TELL "Verifying disk..." CR>
<COND (<VERIFY> <TELL "The disk is correct." CR>)
(T <TELL CR "** Disk Failure **" CR>)>>
"
<ROUTINE V-$WHEN ('AUX' (CNT 0) O L NUM RM)
<REPEAT ()
<COND (<G? <SET CNT <+ .CNT 1>> ,CHARACTER-MAX>
<RETURN>)
(<SET O <GET ,CHARACTER-TABLE .CNT>>
<SET L <GET ,MOVEMENT-GOALS .CNT>>
<REPEAT ()
<COND (<0? <SET NUM <GET .L ,MG-TIME>>> <RETURN>)
(<SET RM <GET .L 3>>
<TELL D .O ' will go in ' N .NUM ' minutes to'>
<THE? .RM>
<TELL ' ' D .RM '.' CR>
<SET L <REST .L ,MG-LENGTH>>)>>)>>>
"
<ROUTINE V-$TANDY ("AUX" X MSG)
<COND (<NOT ,DEBUG>
<SET MSG <PICK-ONE ,UNKNOWN-MSGS>>
<TELL <GET .MSG 0> "$ta" <GET .MSG 1> CR>
<RTRUE>)>
<SET X <GETB 0 1>>
<COND (<==? <BAND .X 8> 0>
<PUTB 0 1 <BOR .X 8>>
<TELL "[on]" CR>)
(T
<PUTB 0 1 <BAND .X -9>>
<TELL "[off]" CR>)>>
<ROUTINE V-$WHERE ("AUX" (CNT 0) O L MSG)
<COND (<NOT ,DEBUG>
<SET MSG <PICK-ONE ,UNKNOWN-MSGS>>
<TELL <GET .MSG 0> "$whr" <GET .MSG 1> CR>)
(,PRSI <MOVE ,PRSI ,PRSO>)
(,PRSO <GOTO ,PRSO>)
(T
<REPEAT ()
<COND (<SET O <GET ,CHARACTER-TABLE .CNT>>
<SET L <LOC .O>>
<TELL D .O " is ">
<COND (.L <TELL "in"> <THE? .L> <TELL " " D .L "."CR>)
(T <TELL "nowhere." CR>)>)>
<COND (<G? <SET CNT <+ .CNT 1>> ,CHARACTER-MAX>
<RETURN>)>>)>>
<GLOBAL DEBUG <>>
<ROUTINE V-DEBUG ("AUX" MSG)
<COND (<SETG DEBUG <NOT ,DEBUG>>
<TELL "Find them bugs, boss!" CR>)
(T <TELL "No bugs left, eh?" CR>)>>
""
"ZORK game commands"
<CONSTANT DIFFICULTY-MAX 2>
<GLOBAL DIFFICULTY 0>
"
<ROUTINE V-EASIER ()
<COND (<0? ,DIFFICULTY>
<TELL 'If this were any easier, there'd be no mystery!' CR>)
(T <SETG DIFFICULTY <- ,DIFFICULTY 1>>
<TELL 'O.K., let's see if you can handle it now.' CR>)>
<COND (<0? ,DIFFICULTY>
<COND (<IN? ,BROOM ,STORAGE-CLOSET> <MOVE ,BROOM ,OFFICE>)>
<MOVE ,BROKEN-GLASS ,OFFICE-PORCH>)
(<1? ,DIFFICULTY> <MOVE ,BROKEN-GLASS ,LOCAL-GLOBALS>)
(<RTRUE>)>>
<ROUTINE V-HARDER ()
<COND (<==? ,DIFFICULTY ,DIFFICULTY-MAX>
<TELL 'If this were any harder, you'd never solve it!' CR>)
(T <SETG DIFFICULTY <+ ,DIFFICULTY 1>>
<TELL 'O.K., let's see how you handle it now.' CR>)>
<COND (<NOT <0? ,DIFFICULTY>>
<COND (<IN? ,BROOM ,OFFICE> <MOVE ,BROOM ,STORAGE-CLOSET>)>)
(<1? ,DIFFICULTY> <MOVE ,BROKEN-GLASS ,LOCAL-GLOBALS>)
(<==? ,DIFFICULTY ,DIFFICULTY-MAX> <MOVE ,BROKEN-GLASS ,OFFICE>)
(<RTRUE>)>>
"
"SUBTITLE SETTINGS FOR VARIOUS LEVELS OF DESCRIPTION"
<GLOBAL VERBOSE <>>
<GLOBAL SUPER-BRIEF <>>
<GDECL (VERBOSE SUPER-BRIEF) <OR ATOM FALSE>>
<ROUTINE V-BRIEF ()
<SETG VERBOSE <>>
<SETG SUPER-BRIEF <>>
<SETG P-SPACE 1>
<TELL "(O.K., you will get " "brief" " descriptions.)" CR>>
<ROUTINE V-SUPER-BRIEF ()
<SETG SUPER-BRIEF T>
<SETG P-SPACE 0>
<TELL
"(O.K., you will get " "super-brief descriptions. Remember that objects and
people won't be described, only the name of the place you are entering.)" CR>>
<ROUTINE V-VERBOSE ()
<SETG VERBOSE T>
<SETG SUPER-BRIEF <>>
<SETG P-SPACE 1>
<TELL "(O.K., you will get " "verbose" " descriptions.)" CR>>
<GLOBAL P-SPACE 1>
<ROUTINE V-SPACE ()
<SETG P-SPACE 1>
<TELL
"(O.K., you will now see a space before each input line.)" CR>>
<ROUTINE V-UNSPACE ()
<SETG P-SPACE 0>
<TELL
"(O.K., you will not see a space before each input line.)" CR>>
<ROUTINE V-INVENTORY ()
<COND (<FIRST? ,WINNER> <PRINT-CONT ,WINNER>)
(T <TELL "You are empty-handed." CR>)>>
<ROUTINE V-TIME ()
<TELL "It's now ">
<TIME-PRINT ,PRESENT-TIME>
<CRLF>>
<ROUTINE TIME-PRINT (NUM "AUX" HR (AM <>))
#DECL ((NUM HR) FIX (AM) <OR FALSE ATOM>)
<COND (<G? <SET HR </ .NUM 60>> 12>
<SET HR <- .HR 12>>
<SET AM T>)
(<==? .HR 12> <SET AM T>)>
<PRINTN .HR>
<TELL ":">
<COND (<L? <SET HR <MOD .NUM 60>> 10>
<TELL "0">)>
<TELL N .HR " ">
<TELL <COND (.AM "a.m.") (T "p.m.")>>>
<ROUTINE V-QUIT ("OPTIONAL" (ASK? T) "AUX" SCOR)
#DECL ((ASK?) <OR ATOM <PRIMTYPE LIST>> (SCOR) FIX)
<COND (<OR <AND .ASK?
<TELL
"(If you want to continue from this point at another time, you must
\"SUSPEND\" first.) Do you want to " "stop your investigation now?">
<YES?>>
<NOT .ASK?>>
<COND (,TOO-LATE <TOO-LATE-F>)>
<QUIT>)
(ELSE <TELL "O.K." CR>)>>
<ROUTINE V-RESTART ()
<TELL
"Do you wish to restart your investigation?">
<COND (<YES?>
<RESTART>
<TELL "Your original" " status couldn't be restored."
" Consult your instruction manual" ;"Nat'l Detective Gazette" " if necessary."
CR>)>>
<ROUTINE V-RESTORE ()
<COND (<RESTORE>
<TELL "O.K." CR>
<V-FIRST-LOOK>)
(T
<TELL "Your previous" " status couldn't be restored."
" Consult your instruction manual" ;"Nat'l Detective Gazette"
" or Reference Card" " if necessary."
CR>)>>
<ROUTINE V-FIRST-LOOK ()
<COND (<DESCRIBE-ROOM>
<COND (<NOT ,SUPER-BRIEF> <DESCRIBE-OBJECTS>)>)>>
<ROUTINE V-SAVE ()
<COND (<SAVE>
<TELL "O.K." CR>)
(T
<TELL "Your story couldn't be suspended."
" Consult your instruction manual" ;"Nat'l Detective Gazette"
" or Reference Card" " if necessary."
CR>)>>
<ROUTINE TANDY? () <NOT <==? <BAND <GETB 0 1> 8> 0>>>
<ROUTINE V-VERSION ("AUX" (CNT 17))
<TELL
"The WITNESS
Infocom interactive fiction - a mystery story|
Copyright (c) 1983 by Infocom, Inc. All rights reserved.|
">
;<COND (<TANDY?>
<TELL "Licensed to Tandy Corporation." CR>)>
<TELL "The WITNESS is a registered trademark of Infocom, Inc.|
Release number ">
<PRINTN <BAND <GET 0 1> *3777*>>
<TELL " / Serial number ">
<REPEAT ()
<COND (<G? <SET CNT <+ .CNT 1>> 23>
<RETURN>)
(T
<PRINTC <GETB 0 .CNT>>)>>
<CRLF>>
<ROUTINE YES? ()
<PRINTI " (Answer YES or NO.) >">
<READ ,P-INBUF ,P-LEXV>
<COND (<0? <GETB ,P-LEXV ,P-LEXWORDS>>
<RFALSE>)
(<EQUAL? <GET ,P-LEXV 1> ,W?YES ,W?Y>
<RTRUE>)
(T
<RFALSE>)>>
""
"SUBTITLE - GENERALLY USEFUL ROUTINES & CONSTANTS"
"DESCRIBE-OBJECT -- takes object and flag. if flag is true will print a
long description (fdesc or ldesc), otherwise will print short."
<ROUTINE DESCRIBE-OBJECT (OBJ V? LEVEL "AUX" (STR <>) AV)
<COND (<AND <0? .LEVEL>
<APPLY <GETP .OBJ ,P?DESCFCN> ,M-OBJDESC>>
<RTRUE>)>
<COND (<FSET? .OBJ ,PERSON> <THIS-IS-S-HE .OBJ>)
(T <THIS-IS-IT .OBJ>)>
<COND (<AND <0? .LEVEL>
<OR <AND <NOT <FSET? .OBJ ,TOUCHBIT>>
<SET STR <GETP .OBJ ,P?FDESC>>>
<SET STR <GETP .OBJ ,P?LDESC>>>>
<TELL .STR>)
(<0? .LEVEL>
<COND (<FSET? .OBJ ,PERSON>
<TELL D .OBJ " is here.">)
(T
<TELL "There's "
<COND (<FSET? .OBJ ,AN> "an ")
(T "a ")>
D .OBJ " here.">)>)
(ELSE
<TELL <GET ,INDENTS .LEVEL>>
<COND (<FSET? .OBJ ,PERSON>
<TELL D .OBJ>)
(T
<TELL <COND (<FSET? .OBJ ,AN> "an ")
(T "a ")>
D .OBJ>)>)>
<COND (<AND <0? .LEVEL>
<SET AV <LOC ,WINNER>>
<FSET? .AV ,VEHBIT>>
<TELL " (outside"> <THE? .AV> <TELL " " D .AV ")">)>
<CRLF>
<COND (<AND <SEE-INSIDE? .OBJ> <FIRST? .OBJ>>
<PRINT-CONT .OBJ .V? .LEVEL>)>>
<ROUTINE DESCRIBE-OBJECTS ("OPTIONAL" (V? <>))
<COND (,LIT
<COND (<FIRST? ,HERE>
<PRINT-CONT ,HERE <SET V? <OR .V? ,VERBOSE>> -1>)>)
(ELSE
<TELL "You can't see anything in the dark." CR>)>>
<ROUTINE DESCRIBE-ROOM ("OPTIONAL" (LOOK? <>) "AUX" V? (F? <>) STR L)
<SET V? <OR .LOOK? ,VERBOSE>>
<COND (<NOT <FSET? ,HERE ,TOUCHBIT>>
<FSET ,HERE ,TOUCHBIT>
<SET V? T>
<SET F? T>)>
<COND (<IN? ,HERE ,ROOMS>
<COND (,P-PROMPT
<TELL "You are now "
<COND (<FSET? ,HERE ,ON-NOT-IN> "on")
(T "in")>>
<THE? ,HERE>
<TELL " " D ,HERE "." CR>)
(T
<TELL "(" D ,HERE ")" CR>)>)>
<COND (<OR .LOOK? <NOT ,SUPER-BRIEF>>
<SET L ,PLAYER-HIDING>
<COND (.L
<TELL "(You are hiding behind">
<THE? .L>
<TELL " " D .L ".)" CR>)
(<FSET? <SET L <LOC ,WINNER>> ,VEHBIT>
<TELL "(You are ">
<COND (<FSET? .L ,SURFACEBIT>
<TELL "sitting o">)
(T <TELL "standing i">)>
<TELL "n">
<THE? .L>
<TELL " " D .L ".)" CR>)>
<COND (<AND .V? <APPLY <GETP ,HERE ,P?ACTION> ,M-LOOK>>
<RTRUE>)
(<AND .V? <SET STR <GETP ,HERE ,P?FDESC>>>
<TELL .STR CR>)
(<AND .V? <SET STR <GETP ,HERE ,P?LDESC>>>
<TELL .STR CR>)
(T <APPLY <GETP ,HERE ,P?ACTION> ,M-FLASH>)>
<COND (<NOT <==? ,HERE .L>>
<APPLY <GETP .L ,P?ACTION> ,M-LOOK>)>)>
<COND (<GETP ,HERE ,P?CORRIDOR> <CORRIDOR-LOOK>)>
T>
"Lengths:"
<CONSTANT UEXIT 1> "Uncondl EXIT:(dir TO rm) = rm"
<CONSTANT NEXIT 2> "Non EXIT: (dir string) = str-ing"
<CONSTANT FEXIT 3> "Fcnl EXIT: (dir PER rtn) = rou-tine, 0"
<CONSTANT CEXIT 4> "Condl EXIT: (dir TO rm IF f) = rm, f, str-ing"
<CONSTANT DEXIT 5> "Door EXIT: (dir TO rm IF dr IS OPEN) = rm, dr, str-ing, 0"
<CONSTANT REXIT 0>
<CONSTANT NEXITSTR 0>
<CONSTANT FEXITFCN 0>
<CONSTANT CEXITFLAG 1> "GETB"
<CONSTANT CEXITSTR 1> "GET"
<CONSTANT DEXITOBJ 1> "GETB"
<CONSTANT DEXITSTR 1> "GET"
<GLOBAL FINGERPRINT-OBJ <>>
<ROUTINE FIRSTER (OBJ LEVEL)
<COND (<==? .OBJ ,WINNER>
<TELL "You are carrying:" CR>)
(<NOT <IN? .OBJ ,ROOMS>>
<COND (<G? .LEVEL 0>
<TELL <GET ,INDENTS .LEVEL>>)>
<COND (<FSET? .OBJ ,SURFACEBIT>
<TELL "Sitting on">
<THE? .OBJ>
<TELL " " D .OBJ " can be seen:" CR>)
(<FSET? .OBJ ,PERSON>
<TELL D .OBJ " is holding:" CR>)
(ELSE
<TELL "The " D .OBJ
" contains:" CR>)>)>>
<ROUTINE GONE-CRAZY ()
<TELL
"You vaguely hear screaming and yelling through a haze of confusion and
the tugs of your conscience asking \"How could you have done it?\"
Before you can answer, you hear police sirens come near. Sergeant Duffy
and two others enter and grab you by the arms. They take you to a
waiting car, where, forlorn and disgusted, you think about being sent up
for life. \"Maybe,\" you think, \"I shouldn't have done that.\"" CR>
<CASE-OVER>>
<ROUTINE GOTO (RM "OPTIONAL" (V? T) "AUX" F WT)
#DECL ((RM) OBJECT)
<WHERE-UPDATE ,PLAYER>
<MOVE ,PLAYER .RM>
<SETG HERE .RM>
<SETG LIT T>
<APPLY <GETP ,HERE ,P?ACTION> ,M-ENTER>
<COND (.V? <V-FIRST-LOOK>)>>
<ROUTINE HACK-HACK (STR)
<COND (<IN? ,PRSO ,GLOBAL-OBJECTS>
<SETG P-WON <>>
<TELL "(You can't see any" PRSO " here.)" CR>)
(T
<TELL .STR THE-PRSO <PICK-ONE ,HO-HUM> CR>)>>
<GLOBAL HO-HUM
<PLTABLE
" doesn't help."
" has no effect.">>
<ROUTINE HELD? (OBJ)
<REPEAT ()
<COND (<NOT <LOC .OBJ>> <RFALSE>)
(<EQUAL? <LOC .OBJ> ,ROOMS ,GLOBAL-OBJECTS> <RFALSE>)
(<IN? .OBJ ,WINNER> <RTRUE>)
(T <SET OBJ <LOC .OBJ>>)>>>
<ROUTINE IDROP ()
<COND (<FSET? ,PRSO ,PERSON>
<TELL D ,PRSO " wouldn't enjoy that." CR>
<RFALSE>)
(<AND <NOT <IN? ,PRSO ,WINNER>>
<NOT <IN? <LOC ,PRSO> ,WINNER>>>
<TELL "You're not carrying" THE-PRSO "." CR>
<RFALSE>)
(<AND <NOT <IN? ,PRSO ,WINNER>>
<NOT <FSET? <LOC ,PRSO> ,OPENBIT>>>
<TELL "Too bad, but" THE-PRSO " is closed."CR>
<RFALSE>)
(T <MOVE ,PRSO ,HERE ;<LOC ,WINNER>> <RTRUE>)>>
<GLOBAL INDENTS
<PTABLE ""
" "
" "
" "
" "
" ">>
<GLOBAL FUMBLE-NUMBER 7>
<GLOBAL FUMBLE-PROB 8>
<ROUTINE ITAKE ("OPTIONAL" (VB T) "AUX" CNT OBJ)
#DECL ((VB) <OR ATOM FALSE> (CNT) FIX (OBJ) OBJECT)
<COND (<NOT <FSET? ,PRSO ,TAKEBIT>>
<COND (.VB
<TELL "You can't take" THE-PRSO "." CR>)>
<RFALSE>)
(<AND <NOT <IN? <LOC ,PRSO> ,WINNER>>
<G? <+ <WEIGHT ,PRSO> <WEIGHT ,WINNER>> ,LOAD-ALLOWED>>
<COND (.VB
<TELL "Your load's too heavy">
<COND (<L? ,LOAD-ALLOWED ,LOAD-MAX>
<TELL ", especially in light of your condition.">)
(ELSE <TELL ".">)>
<CRLF>)>
<RFATAL>)
(<AND <G? <SET CNT <CCOUNT ,WINNER>> ,FUMBLE-NUMBER>
<PROB <* .CNT ,FUMBLE-PROB>>>
<SET OBJ <FIRST? ,WINNER>>
<SET OBJ <NEXT? .OBJ>>
<TELL "Too bad, but">
<THE? .OBJ>
<TELL " " D .OBJ
" slips from your arms while you are taking"
THE-PRSO
", and both tumble to the ">
<COND (<==? <GETP ,HERE ,P?LINE> ,OUTSIDE-LINE-C>
<TELL "ground">)
(T <TELL "floor">)>
<TELL "." CR>
<MOVE .OBJ ,HERE> ;<PERFORM ,V?DROP .OBJ>
<MOVE ,PRSO ,HERE>
<RFATAL>)
(T
<MOVE ,PRSO ,WINNER>
<FSET ,PRSO ,TOUCHBIT>
<FCLEAR ,PRSO ,NDESCBIT>
<FCLEAR ,PRSO ,INVISIBLE>
<RTRUE>)>>
<ROUTINE CCOUNT (OBJ "AUX" (CNT 0) X)
<COND (<SET X <FIRST? .OBJ>>
<REPEAT ()
<SET CNT <+ .CNT 1>>
<COND (<NOT <SET X <NEXT? .X>>>
<RETURN>)>>)>
.CNT>
<ROUTINE NOT-HERE (OBJ)
<SETG P-WON <>>
<TELL "(You can't see">
<THE? .OBJ>
<TELL " " D .OBJ " here.)" CR>>
<ROUTINE PRINT-CONT (OBJ "OPTIONAL" (V? <>) (LEVEL 0)
"AUX" Y 1ST? AV (STR <>) (PV? <>) (INV? <>))
#DECL ((OBJ) OBJECT (LEVEL) FIX)
<COND (<NOT <SET Y <FIRST? .OBJ>>> <RTRUE>)>
<COND (<AND <SET AV <LOC ,WINNER>> <FSET? .AV ,VEHBIT>>
T)
(ELSE <SET AV <>>)>
<SET 1ST? T>
<COND (<EQUAL? ,WINNER .OBJ <LOC .OBJ>>
<SET INV? T>)
(ELSE
<REPEAT ()
<COND (<NOT .Y> <RETURN <NOT .1ST?>>)
(<==? .Y .AV> <SET PV? T>)
(<==? .Y ,WINNER>)
(<AND %<COND (<GASSIGNED? PREDGEN>'<NOT <FSET? .Y ,INVISIBLE>>)
(T '<OR <NOT <FSET? .Y ,INVISIBLE>>
<AND ,DEBUG <TELL "[invisible] ">>>)>
<NOT <FSET? .Y ,TOUCHBIT>>
<OR ;<APPLY <GETP .Y ,P?DESCFCN> ,M-OBJDESC>
<SET STR <GETP .Y ,P?FDESC>>>>
<COND (<OR <NOT <FSET? .Y ,NDESCBIT>>
<AND ,DEBUG <TELL "[ndescbit] ">>>
<SET 1ST? <>>
<SET LEVEL 0>
<COND (.STR
<TELL .STR CR>
<SET STR <>>
<COND (<FSET? .Y ,PERSON> <THIS-IS-S-HE .Y>)
(T <THIS-IS-IT .Y>)>)>)>
<COND (<AND <SEE-INSIDE? .Y>
<NOT <GETP <LOC .Y> ,P?DESCFCN>>
<FIRST? .Y>>
<PRINT-CONT .Y .V? 0>)>)>
<SET Y <NEXT? .Y>>>)>
<SET Y <FIRST? .OBJ>>
<REPEAT ()
<COND (<NOT .Y>
<COND (<AND .PV? .AV <FIRST? .AV>>
<PRINT-CONT .AV .V? .LEVEL>)>
<RETURN <NOT .1ST?>>)
(<EQUAL? .Y .AV ,PLAYER>)
(<AND %<COND (<GASSIGNED? PREDGEN>'<NOT <FSET? .Y ,INVISIBLE>>)
(T '<OR <NOT <FSET? .Y ,INVISIBLE>>
<AND ,DEBUG <TELL "[invisible] ">>>)>
<OR .INV?
<FSET? .Y ,TOUCHBIT>
<NOT <GETP .Y ,P?FDESC>>>>
<COND (<OR <NOT <FSET? .Y ,NDESCBIT>>
<AND ,DEBUG <TELL "[ndescbit] ">>>
<COND (.1ST?
<COND (<FIRSTER .OBJ .LEVEL>
<COND (<L? .LEVEL 0> <SET LEVEL 0>)>)>
<SET LEVEL <+ 1 .LEVEL>>
<SET 1ST? <>>)>
<DESCRIBE-OBJECT .Y .V? .LEVEL>)
(<AND <FIRST? .Y> <SEE-INSIDE? .Y>>
<PRINT-CONT .Y .V? .LEVEL>)>)>
<SET Y <NEXT? .Y>>>>
<ROUTINE PRINT-CONTENTS (OBJ "AUX" F N (1ST? T))
#DECL ((OBJ) OBJECT (F N) <OR FALSE OBJECT>)
<COND (<SET F <FIRST? .OBJ>>
<REPEAT ()
<SET N <NEXT? .F>>
<COND (.1ST? <SET 1ST? <>>)
(ELSE
<TELL ", ">
<COND (<NOT .N> <TELL "and ">)>)>
<COND (<FSET? .F ,PERSON>
<TELL D .F>)
(T
<TELL <COND (<FSET? .F ,AN> "an ")
(T "a ")>
D .F>)>
<COND (<FSET? .F ,PERSON> <THIS-IS-S-HE .F>)
(T <THIS-IS-IT .F>)>
<SET F .N>
<COND (<NOT .F> <RETURN>)>>)>>
<GLOBAL QCONTEXT <>>
<GLOBAL QCONTEXT-ROOM <>>
<ROUTINE ROOM-CHECK ()
<COND (<IN? ,PRSO ,ROOMS>
<COND (<EQUAL? ,PRSO ,HERE ,GLOBAL-HERE>
<PERFORM ,PRSA ,GLOBAL-ROOM ,PRSI>
<RTRUE>)
;(<DOBJ? DRIVEWAY> <RFALSE>)
(T
<TELL "You aren't in that place!" CR>
<RTRUE>)>)
(<OR <DOBJ? PSEUDO-OBJECT>
<EQUAL? <META-LOC ,PRSO>
,HERE ,GLOBAL-OBJECTS ,LOCAL-GLOBALS>>
<RFALSE>)
(T
<SETG P-WON <>>
<TELL "(You can't see any ">
<COND (<==? ,PRSO ,CAR-WINDOW> <TELL "window">)
(T <TELL D ,PRSO>)>
<TELL " here!)" CR>)>>
<ROUTINE SEE-INSIDE? (OBJ)
<AND <NOT <FSET? .OBJ ,INVISIBLE>>
<OR <FSET? .OBJ ,TRANSBIT> <FSET? .OBJ ,OPENBIT>>>>
"WEIGHT: Get sum of SIZEs of supplied object, recursing to the nth level."
<ROUTINE WEIGHT (OBJ "AUX" CONT (WT 0))
#DECL ((OBJ) OBJECT (CONT) <OR FALSE OBJECT> (WT) FIX)
<COND (<SET CONT <FIRST? .OBJ>>
<REPEAT ()
<SET WT <+ .WT <WEIGHT .CONT>>>
<COND (<NOT <SET CONT <NEXT? .CONT>>> <RETURN>)>>)>
<+ .WT <GETP .OBJ ,P?SIZE>>>
<GLOBAL WHO-CARES
<PLTABLE " doesn't appear interested"
" doesn't care"
" lets out a loud yawn"
" seems to be getting impatient">>
<GLOBAL YUKS
<PLTABLE "That's ridiculous!"
"That's wacky!"
"Nuts!"
"What a fruitcake!"
"What a screwball!"
"You're off your rocker!"
"You're crazy in the head!"
"You can't be serious!">>
""
"SUBTITLE REAL VERBS"
<ROUTINE PRE-ACCUSE ()
<COND (<NOT ,PRSI>
<SETG PRSI ,GLOBAL-MURDER>)>
<COND (<FSET? ,CORPSE ,INVISIBLE>
<TELL "Nothing's dead here but your head!" CR>)
(<AND <DOBJ? GLOBAL-LINDER CORPSE> <IOBJ? GLOBAL-SUICIDE>>
<TELL
"Duffy appears for a moment. "
"\"So you believe that Linder's death was suicide? I'm not convinced.
But if you'll "
"just \"arrest Mr. Linder,\" we can go on from there.\" He disappears again."
CR>
<RTRUE>)
(<AND <DOBJ? GLOBAL-MRS-LINDER> <IOBJ? GLOBAL-SUICIDE>>
<TELL "Everybody knows that!" CR>
<RTRUE>)
(<NOT <==? ,PRSI ,GLOBAL-MURDER>>
<TELL "What an accusation!" CR>)
(<NOT <FSET? ,PRSO ,PERSON>>
<TELL "What a detective! \"Quick, Sergeant! Arrest that "
D ,PRSO "!\"" CR>)>>
<ROUTINE V-ACCUSE ()
<TELL D ,PRSO " shrugs off your accusation." CR>>
<ROUTINE PRE-SANALYZE ()
<PERFORM ,V?ANALYZE ,PRSI ,PRSO>
<RTRUE>>
<ROUTINE V-SANALYZE ()
<TELL "[Foo!! This is a bug!!]" CR>>
<ROUTINE PRE-ANALYZE ()
<COND (<IOBJ? GLOBAL-FINGERPRINTS> <RFALSE>)
(<NOT ,MET-DUFFY?>
<TELL
"You haven't met Sergeant Duffy yet tonight."
" You'll need his help to do that." CR>
<RTRUE>)
(,DUFFY-WITH-STILES
<TELL
"You'd better wait until Duffy takes care of his prisoner." CR>)>>
<ROUTINE V-ANALYZE ()
<COND (<==? ,PRSI ,GLOBAL-FINGERPRINTS>
<PERFORM ,V?FINGERPRINT ,PRSO>
<RTRUE>)
(<OR ,FINGERPRINT-OBJ ,DUFFY-AT-CORONER <FSET? ,PRSO ,TAKEBIT>>
<DO-ANALYZE>)
(<IN? ,PRSO ,GLOBAL-OBJECTS>
<TELL
"Duffy appears in an instant. \"Well, I might be able to analyze"
THE-PRSO ",
but you don't even have it with you!\" With that, he discreetly leaves." CR>)
(T
<TELL
"Sergeant Duffy appears with a puzzled look on his face." " \"With all
respect, I don't think I can take THAT to the laboratory! I'll
be nearby if you need me.\"" " He leaves, shaking his head slowly." CR>)>>
<ROUTINE V-ANSWER ()
<TELL "Nobody seems to be waiting for your answer." CR>
<SETG P-CONT <>>
<SETG QUOTE-FLAG <>>
<RTRUE>>
<ROUTINE V-REPLY ()
<SETG P-CONT <>>
<SETG QUOTE-FLAG <>>
<COND (<FSET? ,PRSO ,DOORBIT>
<TELL "No one's knocking at" THE-PRSO "." CR>)
(T <TELL "Too bad, but" THE-PRSO " doesn't care." CR>)>>
<ROUTINE PRE-ARREST ()
<COND (<FSET? ,CORPSE ,INVISIBLE>
<TELL "For what? You have no evidence of a crime yet." CR>)
(<NOT ,MET-DUFFY?>
<TELL
"You haven't met Sergeant Duffy yet tonight."
" You'll need his help to do that." CR>)
(<OR ,FINGERPRINT-OBJ ,DUFFY-AT-CORONER>
<TELL
"Sergeant Duffy isn't around right now. You'll have to wait for him to
help you make the arrest." CR>)
(<AND <NOT <DOBJ? CORPSE GLOBAL-LINDER OBJECT-PAIR>>
<IOBJ? GLOBAL-SUICIDE RANDOM-CRIME>>
<TELL
"Your Chief would probably want you to be sure there's no bigger fish
here, like an honest-to-Pete murderer." CR>)
(<DOBJ? GLOBAL-DUFFY> <RFALSE>)
(<OR <AND <NOT <FSET? ,PRSO ,PERSON>>
<NOT <DOBJ? CORPSE GLOBAL-LINDER OBJECT-PAIR>>>
<AND ,PRSI <NOT <IOBJ? GLOBAL-MURDER>>>>
<TELL "What a detective! \"Quick, Sergeant! Arrest that "
D ,PRSO>
<COND (,PRSI <TELL " for " D ,PRSI>)>
<TELL " before "
<COND (<FSET? ,PRSO ,FEMALE> "she")
(<OR <DOBJ? GLOBAL-DUFFY> <FSET? ,PRSO ,PERSON>>
"he")
(T "it")>
" gets away!\"" CR>)>>
<ROUTINE V-ARREST ()
<COND (<FSET? ,PRSO ,PERSON>
<TELL
"You realize that you don't have enough evidence to convict " D ,PRSO
", so you decide to continue the investigation." CR>)
(T
<TELL
"Sergeant Duffy enters, strokes his chin, and in a puzzled voice says,
\"With all respect, I think we'd be laughed out of the station if we
tried to charge" THE-PRSO " with murder!\" He leaves quietly." CR>)>>
<ROUTINE V-ASK-ABOUT ()
<COND (<==? ,PRSO ,PLAYER>
<TELL
"It's been a long week, but talking to yourself won't end it any sooner." CR>)
(<NOT <FSET? ,PRSO ,PERSON>>
<TELL "Hey, Duffy! Look at your boss talking to "
<COND (<FSET? ,PRSO ,AN> "an ")
(T "a ")>
D ,PRSO "!" CR>)
(T
<FSET ,PRSO ,TOUCHBIT>
<TELL D ,PRSO " doesn't seem to know about that." CR>)>>
<ROUTINE PRE-ASK-CONTEXT-ABOUT ("AUX" P)
<COND (<AND ,QCONTEXT
<==? ,HERE ,QCONTEXT-ROOM>
<==? ,HERE <META-LOC ,QCONTEXT>>>
<PERFORM ,V?ASK-ABOUT ,QCONTEXT ,PRSO>
<RTRUE>)
(<SET P <FIND-FLAG ,HERE ,PERSON ,WINNER>>
<PERFORM ,V?ASK-ABOUT .P ,PRSO>
<RTRUE>)>>
<ROUTINE V-ASK-CONTEXT-ABOUT ()
<TELL "You aren't talking to anyone!" CR>>
<ROUTINE V-ASK-FOR ()
<COND (<AND <FSET? ,PRSO ,PERSON> <NOT <==? ,PRSO ,PLAYER>>>
<FSET ,PRSO ,TOUCHBIT>
<TELL D ,PRSO>
<COND (<IN? ,PRSI ,PRSO>
<TELL " hands you" THE-PRSI "." CR>
<MOVE ,PRSI ,WINNER>)
(T <TELL " doesn't have that." CR>)>)
(T <TELL <PICK-ONE ,YUKS> CR>)>>
<ROUTINE PRE-ASK-CONTEXT-FOR ("AUX" P)
<COND (<AND ,QCONTEXT
<==? ,HERE ,QCONTEXT-ROOM>
<==? ,HERE <META-LOC ,QCONTEXT>>>
<PERFORM ,V?ASK-FOR ,QCONTEXT ,PRSO>
<RTRUE>)
(<SET P <FIND-FLAG ,HERE ,PERSON ,WINNER>>
<PERFORM ,V?ASK-FOR .P ,PRSO>
<RTRUE>)>>
<ROUTINE V-ASK-CONTEXT-FOR ()
<TELL "You aren't talking to anyone!" CR>>
<ROUTINE V-ATTACK () <IKILL "attack">>
<ROUTINE V-BRUSH ()
<COND (<DOBJ? OUTSIDE-GUN MUDDY-SHOES>
<TELL "You shouldn't try to clean a piece of evidence." CR>)
(T <TELL
"\"Cleanliness is next to Godliness,\" but in this case it seems to be
next to Impossible." CR>)>>
<ROUTINE V-CALL-LOSE ()
<TELL "(You must use a verb!)" CR>>
<ROUTINE V-$CALL ("AUX" PER (MOT <>))
<COND (<FSET? ,PRSO ,PERSON>
<SET PER <GET ,CHARACTER-TABLE <GETP ,PRSO ,P?CHARACTER>>>
<COND (<IN-MOTION? .PER> <SET MOT T>)>
<COND (<OR <==? <META-LOC .PER> ,HERE> <CORRIDOR-LOOK .PER>>
<FSET .PER ,TOUCHBIT>
<TELL D .PER>
<COND (<GRAB-ATTENTION .PER>
<COND (.MOT
<TELL " stops and turns toward you." CR>)
(T <TELL " is listening." CR>)>)
(T
<TELL " ignores you." CR>)>)
(T
<SETG P-WON <>>
<TELL "(You don't see " D .PER " here.)" CR>)>)
(T <V-CALL-LOSE>)>>
<ROUTINE V-PHONE ("AUX" PER)
<COND (<AND <FSET? ,PRSO ,PERSON>
<SET PER <GET ,CHARACTER-TABLE<GETP ,PRSO ,P?CHARACTER>>>
<OR <==? <META-LOC .PER> ,HERE> <CORRIDOR-LOOK .PER>>>
<PERFORM ,V?$CALL ,PRSO>
<RTRUE>)
(<AND ,PRSI <NOT <==? ,PRSI ,TELEPHONE>>>
<TELL
"Too bad, but" THE-PRSI " isn't wired for phoning." CR>)
(<NOT <PHONE-IN? ,HERE>>
<TELL "There's no phone here." CR>)
(<AND <DOBJ? INTNUM> <==? ,P-NUMBER 0>>
<TELL
"You dial the operator, who doesn't go for any of your cute lines, but
does connect you with the police station. "
"The night clerk at the station says he'll give Duffy your message." CR>)
(<OR <DOBJ? BRASS-LANTERN>
<AND <DOBJ? INTNUM> <==? ,P-NUMBER 1308>>>
<TELL
"You dial the number. A voice with a thick Oriental accent answers and says,
\"Sorry, Brass Lantern off tonight. Private party. Thank you.\" Then the line
goes dead." CR>)
(<OR <DOBJ? STILES GLOBAL-STILES MATCHBOOK>
<AND <DOBJ? INTNUM> <==? ,P-NUMBER 1729>>>
<TELL
"You dial the number. It rings several times with no answer." CR>)
(<DOBJ? INTNUM>
<TELL "There's no point in calling that number." CR>)
(<DOBJ? GLOBAL-TERRY>
<TELL "You don't know the number." CR>)
(<NOT <FSET? ,PRSO ,PERSON>>
<TELL "Too bad, but" THE-PRSO " has no phone." CR>)
(<IN? ,PRSO ,HERE>
<TELL D ,PRSO " is right here!" CR>)
(T <TELL "There's no sense in phoning " D ,PRSO "." CR>)>>
<ROUTINE V-CLIMB-ON ()
<COND (<AND <FSET? ,PRSO ,FURNITURE> <FSET? ,PRSO ,VEHBIT>>
<MOVE ,PLAYER ,PRSO>
<TELL
"You are now sitting on" THE-PRSO "." CR>)
(<FSET? ,PRSO ,FURNITURE>
<TELL "This isn't the kind of thing to sit on!" CR>)
(T
<TELL
"You can't climb onto" THE-PRSO "." CR>)>>
<ROUTINE V-CLIMB-UP ("OPTIONAL" (DIR ,P?UP) (OBJ <>) "AUX" X)
#DECL ((DIR) FIX (OBJ) <OR ATOM FALSE> (X) TABLE)
<COND (<GETPT ,HERE .DIR>
<PERFORM ,V?WALK .DIR>
<RTRUE>)
(<NOT .OBJ>
<TELL "You can't go that way." CR>)
(<AND .OBJ
<ZMEMQ ,W?WALL
<SET X <GETPT ,PRSO ,P?SYNONYM>>
<- </ <PTSIZE .X> 2> 1>>>
<TELL "Climbing the walls is no help." CR>)
(ELSE <TELL <PICK-ONE ,YUKS> CR>)>>
<ROUTINE V-CLIMB-DOWN ()
<COND (<AND <FSET? ,PRSO ,FURNITURE> <FSET? ,PRSO ,VEHBIT>>
<V-CLIMB-ON>
<RTRUE>)
(T <V-CLIMB-UP ,P?DOWN>)>>
<ROUTINE V-CLIMB-FOO () <V-CLIMB-UP ,P?UP T>>
<ROUTINE V-CLOSE ()
<COND (<NOT <OR <FSET? ,PRSO ,CONTBIT>
<FSET? ,PRSO ,DOORBIT>
<FSET? ,PRSO ,WINDOWBIT>>>
<TELL
"You'd have to be more clever to do that to" THE-PRSO "." CR>)
(<OR <FSET? ,PRSO ,DOORBIT>
<FSET? ,PRSO ,WINDOWBIT>>
<COND (<FSET? ,PRSO ,OPENBIT>
<COND (<FSET? ,PRSO ,RMUNGBIT>
<TELL
"It won't stay closed. The latch is broken." CR>)
(T
<FCLEAR ,PRSO ,OPENBIT>
<TELL
"Okeh," THE-PRSO " is now closed." CR>)>)
(T <TELL "It's already closed." CR>)>)
(<AND <NOT <FSET? ,PRSO ,SURFACEBIT>>
<NOT <==? <GETP ,PRSO ,P?CAPACITY> 0>>>
<COND (<FSET? ,PRSO ,OPENBIT>
<FCLEAR ,PRSO ,OPENBIT>
<TELL "Closed." CR>)
(T <TELL "It's already closed." CR>)>)
(ELSE
<TELL "You can't close" THE-PRSO "." CR>)>>
<ROUTINE PRE-COMPARE ()
<COND (<AND <NOT ,PRSI>
<==? 1 <GET ,P-PRSO 0>>>
<TELL "Oops! Try typing \"COMPARE IT TO (something).\"" CR>
<RTRUE>)
(<==? 2 <GET ,P-PRSO 0>>
<PUT ,P-PRSO 0 1>
<PERFORM ,PRSA <GET ,P-PRSO 1> <GET ,P-PRSO 2>>
<RTRUE>)>>
<ROUTINE V-COMPARE ()
<COND (<==? ,PRSO ,PRSI> <TELL "They're the same thing!" CR>)
(T <TELL "They're not a bit alike." CR>)>>
<ROUTINE V-CONFRONT ()
<COND (<==? ,PRSO ,PLAYER>
<TELL "You aren't talking to anyone!" CR>)
(<NOT <FSET? ,PRSO ,PERSON>>
<TELL
"That ought to put a scare into" THE-PRSO "." CR>)
(T
<TELL D ,PRSO <PICK-ONE ,WHO-CARES> "." CR>)>>
<ROUTINE V-CURSES ()
<COND (,PRSO
<COND (<FSET? ,PRSO ,PERSON>
<TELL
"Insults like that won't help you solve the case." CR>)
(T
<TELL <PICK-ONE ,YUKS> CR>)>)
(T
<TELL <PICK-ONE ,OFFENDED> CR>)>>
<GLOBAL OFFENDED
<PLTABLE "You ought to be ashamed of yourself!"
"Hey, save that talk for the locker room!"
"Step outside and say that!"
"And so's your grandmother!">>
<ROUTINE V-MUNG ()
<COND (<AND <FSET? ,PRSO ,DOORBIT> <NOT ,PRSI>>
<COND (<FSET? ,PRSO ,OPENBIT>
<TELL
"You'd fly through the open door if you tried." CR>)
(<FSET? ,PRSO ,LOCKED>
<TELL "Oof! All you get is a sore shoulder." CR>)
(T <TELL "Why don't you just open it instead?" CR>)>)
(<NOT <FSET? ,PRSO ,PERSON>>
<HACK-HACK "Trying to destroy">)
(<NOT ,PRSI>
<TELL "Trying to destroy " D ,PRSO
" with your bare hands is suicidal." CR>)
(<NOT <FSET? ,PRSI ,WEAPONBIT>>
<TELL "Trying to destroy " D ,PRSO " with "
<COND (<FSET? ,PRSI ,AN> "an ") (T "a ")>
D ,PRSI " is quite self-destructive." CR>)
(T <TELL "You can't." CR>)>>
<ROUTINE V-DRINK ()
<V-EAT>>
;<ROUTINE PRE-DROP ()
<COND (<==? ,PRSO <META-LOC ,WINNER>>
<PERFORM ,V?WALK ,P?OUT>
<RTRUE>)>>
<ROUTINE V-DROP ()
<COND (<IDROP>
<TELL "Okeh," THE-PRSO " is now on the ">
<COND (<==? <GETP ,HERE ,P?LINE> ,OUTSIDE-LINE-C>
<TELL "ground">)
(T <TELL "floor">)>
<TELL "." CR>)>>
<ROUTINE V-EAT ("AUX" (EAT? <>) (DRINK? <>) (NOBJ <>))
#DECL ((NOBJ) <OR OBJECT FALSE> (EAT? DRINK?) <OR ATOM FALSE>)
<COND (<AND <SET EAT? <FSET? ,PRSO ,FOODBIT>> <IN? ,PRSO ,WINNER>>
<COND (<VERB? DRINK>
<TELL
"Seems that you've had too much to drink already!"CR>)
(ELSE
<TELL "Mmm. That really hit the spot." CR>
<REMOVE ,PRSO>)>
<CRLF>)
(<SET DRINK? <FSET? ,PRSO ,DRINKBIT>>
<COND (<OR <IN? ,PRSO ,GLOBAL-OBJECTS>
<AND <SET NOBJ <LOC ,PRSO>>
<IN? .NOBJ ,WINNER>
<FSET? .NOBJ ,OPENBIT>>>
<TELL "Mmm. That really hit the spot." CR>
<REMOVE ,PRSO>)
(T <TELL "You can't get to it." CR>)>)
(<NOT <OR .EAT? .DRINK?>>
<TELL
"The blue-plate special at the diner was enough for you." CR>)>>
<ROUTINE V-ENTER ()