-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathverbs.zil
2230 lines (1922 loc) · 52.4 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
The Lurking Horror
(c) Copyright 1986 Infocom, Inc. All Rights Reserved."
;"stuff to try to save space"
<GLOBAL PERIOD ".|">
<GLOBAL REFERRING "I don't see what you're referring to.">
<GLOBAL I-DONT-THINK-THAT "I don't think that ">
<GLOBAL IT-ALREADY-IS "It already is.|">
;<GLOBAL DOESNT-FIT "It doesn't fit.|">
<GLOBAL IT-LOOKS-LIKE "It looks like ">
<GLOBAL IT-SEEMS-TO-BE "It seems to be ">
<GLOBAL IT-IS-ALREADY "It's already ">
<GLOBAL ITS-NOT-TIED "It's not tied to anything.|">
<GLOBAL TOO-DARK "It's too dark to see!|">
;<GLOBAL LOOK-AROUND-YOU "Look around you.|">
<GLOBAL NOTHING-HAPPENS "Nothing happens.|">
<GLOBAL TAKEN "Taken.|">
<GLOBAL GOOD-TRICK "That would be a good trick.|">
<GLOBAL WASTE-OF-TIME "That would be a waste of time.|">
<GLOBAL THERE-IS-NOTHING "There is nothing ">
<GLOBAL NO-ROOM "There's no room.">
<GLOBAL THERES-NOTHING-TO "There's nothing to ">
<GLOBAL ALREADY-IN-IT "You're already in it.">
<GLOBAL YOURE-IN-IT "You're in it!|">
<GLOBAL YOUVE-ALREADY "You've already ">
<GLOBAL YOU-ARE "You already are">
<GLOBAL YOU-HAVE "You already have ">
<GLOBAL YOU-ARE-NOW "You are now ">
<GLOBAL YOU-ARENT "You aren't ">
<GLOBAL YOU-CANT "You can't ">
<GLOBAL YOU-CANT-SEE "You can't see ">
<GLOBAL YOU-FIND-NOTHING "You find nothing">
<GLOBAL YOU-HAVE-TO "You'll have to ">
;<ROUTINE DONT-HAVE-THAT ()
<TELL ,YOU-DONT-HAVE "that" ,PERIOD>>
<ROUTINE TO-A-PRSO? ()
<HOW-DO-YOU> <A-PRSO?>>
<ROUTINE CANT-GO ()
<TELL ,YOU-CANT "go that way." CR>>
<ROUTINE NOT-HOLDING (OBJ)
<THIS-IS-IT .OBJ>
<TELL ,YOU-ARENT "holding " THE .OBJ ,PERIOD>>
<ROUTINE ITS-EMPTY ()
<TELL CTHE ,PRSO " is empty" ,PERIOD>>
<ROUTINE ITS-ALREADY-X (X)
<TELL ,IT-IS-ALREADY .X ,PERIOD>>
<ROUTINE ALREADY-OPEN ()
<ITS-ALREADY-X "open">>
<ROUTINE ALREADY-CLOSED ()
<ITS-ALREADY-X "closed">>
<ROUTINE WITH-PRSI? ()
<TELL "With "><A-PRSI?>>
<ROUTINE TELL-OPEN-CLOSED ("OPTIONAL" (OBJ <>))
<COND (.OBJ <TELL CTHE .OBJ>)
(ELSE
<SET OBJ ,PRSO>
<TELL THE ,PRSO>)>
<IS-ARE .OBJ>
<TELL " ">
<OPEN-CLOSED .OBJ>>
<ROUTINE OPEN-CLOSED (OBJ)
<COND (<FSET? .OBJ ,OPENBIT>
<TELL "open">)
(ELSE
<TELL "closed">)>
<TELL ,PERIOD>>
<ROUTINE THE-PRSO () <TELL THE ,PRSO ,PERIOD>>
<ROUTINE A-PRSO () <TELL A ,PRSO ,PERIOD>>
<ROUTINE A-PRSO? () <TELL A ,PRSO "?" CR>>
<ROUTINE THE-PRSI () <TELL THE ,PRSI ,PERIOD>>
;<ROUTINE A-PRSI () <TELL A ,PRSI ,PERIOD>>
<ROUTINE A-PRSI? () <TELL A ,PRSI "?" CR>>
<ROUTINE YOU-CANT-X-THAT (STR)
<TELL ,YOU-CANT .STR " that!" CR>>
<ROUTINE YOU-CANT-X-PRSO (STR)
<TELL ,YOU-CANT .STR " ">
<COND (,PRSO <TELL THE ,PRSO>)
(ELSE <TELL "that">)>
<TELL ,PERIOD>>
;<ROUTINE YOU-CANT-X-PRSI (STR)
<TELL ,YOU-CANT .STR " ">
<COND (,PRSI <TELL THE ,PRSI>)
(ELSE <TELL "that">)>
<TELL ,PERIOD>>
<ROUTINE UNINTERESTED (OBJ)
<COND (<EQUAL? .OBJ ,ME>
<TELL-YUKS>)
(ELSE
<TELL CTHE .OBJ>
<IS-ARE .OBJ>
<TELL " uninterested." CR>)>>
<ROUTINE IS-ARE (OBJ)
<COND (<PLURAL? .OBJ> <TELL " are">)
(ELSE <TELL " is">)>>
<ROUTINE PLURAL? (OBJ)
<EQUAL? .OBJ ,RATS ,STUDENTS ,ELEVATOR-DOOR
,ELEVATOR-DOOR-B ,ELEVATOR-DOOR-1 ,ELEVATOR-DOOR-2
,ELEVATOR-DOOR-3 ,STEAM-PIPES ,GLOBAL-URCHINS
,STUDENTS ,URCHINS>>
<ROUTINE CANT-REACH-THAT ()
<YOU-CANT-X-THAT "reach">>
;"end of space saving stuff"
;"subtitle game commands"
<GLOBAL VERBOSITY 1>
<GLOBAL DESCRIPTIONS " descriptions">
<ROUTINE V-VERBOSE ()
<SETG VERBOSITY 2>
<TELL "Verbose" ,DESCRIPTIONS ,PERIOD CR>
<V-LOOK>>
<ROUTINE V-BRIEF ()
<SETG VERBOSITY 1>
<TELL "Brief" ,DESCRIPTIONS ,PERIOD>>
<ROUTINE V-SUPER-BRIEF ()
<SETG VERBOSITY <>>
<TELL "Super-brief" ,DESCRIPTIONS ,PERIOD>>
<ROUTINE V-DIAGNOSE ()
<TELL "You are ">
<COND (<L? ,AWAKE 0>
<TELL "wide awake">)
(T
<TELL <GET ,TIRED-TELL ,AWAKE>>)>
<TELL ", and are in ">
<COND (<G? ,FREEZE-COUNT 2>
<COND (<G? ,FREEZE-COUNT 3>
<TELL "imminent ">)>
<TELL "danger of freezing to death">)
(ELSE
<TELL "good health">
<COND (<NOT <ZERO? ,FREEZE-COUNT>>
<TELL " but getting cold">)>)>
<TELL ,PERIOD>>
<GLOBAL TIRED-TELL
<PTABLE
"beginning to tire"
"feeling tired"
"getting more and more tired"
"worn out"
"dead tired"
"so tired you can barely concentrate"
"moving on your last reserves of strength"
"practically asleep"
"barely able to keep your eyes open"
"about to keel over from exhaustion">>
<ROUTINE V-INVENTORY ()
<SETG D-BIT <- ,WEARBIT>>
<COND (<NOT <DESCRIBE-CONTENTS ,WINNER
<>
<+ ,D-ALL? ,D-PARA?>>>
<TELL "You are empty-handed.">)>
<SETG D-BIT ,WEARBIT>
<DESCRIBE-CONTENTS ,WINNER
<>
<+ ,D-ALL? ,D-PARA?>>
<SETG D-BIT <>>
<CRLF>>
<ROUTINE V-QUIT ("OPTIONAL" (ASK? T) "AUX" SCOR)
%<DEBUG-CODE <TELL-C-INTS>>
<V-SCORE>
<COND (<OR <AND .ASK?
<TELL
S "Do you wish to ""leave the game">
<YES?>>
<NOT .ASK?>>
%<IFSOUND <KILL-SOUNDS>>
<QUIT>)
(T
<TELL ,OKAY>)>>
<ROUTINE V-RESTART ()
%<DEBUG-CODE <TELL-C-INTS>>
<V-SCORE T>
<TELL S "Do you wish to ""restart">
<COND (<YES?>
<TELL "Restarting." CR>
%<IFSOUND <KILL-SOUNDS>>
<RESTART>
<TELL ,FAILED>)>>
<GLOBAL OKAY "Okay.|">
<GLOBAL FAILED "Failed.|">
<ROUTINE FINISH ()
%<IFSOUND <KILL-SOUNDS>>
<USL>
<CRLF>
%<DEBUG-CODE <TELL-C-INTS>>
<V-SCORE>
<CRLF>
<TELL
"Would you like to restart the game from the beginning, restore a saved
game position, or end this session of the game?" CR>
<REPEAT ()
<TELL
"(Type RESTART, RESTORE, or QUIT):|
>">
<READ ,P-INBUF ,P-LEXV>
<COND (<EQUAL? <GET ,P-LEXV 1> ,W?RESTAR>
<RESTART>
<TELL ,FAILED>)
(<EQUAL? <GET ,P-LEXV 1> ,W?RESTOR>
<COND (<RESTORE>
<TELL ,OKAY>)
(T
<TELL ,FAILED>)>)
(<EQUAL? <GET ,P-LEXV 1> ,W?QUIT ,W?Q>
<QUIT>)>>>
<ROUTINE YES? ()
<PRINTI "?|
(Y is affirmative): >">
<READ ,P-INBUF ,P-LEXV>
<COND (<EQUAL? <GET ,P-LEXV 1> ,W?YES ,W?Y>
<RTRUE>)
(T
<RFALSE>)>>
<ROUTINE V-RESTORE ("AUX" X Y)
<SET X <GET ,SOUND-FLAG 0>>
%<IFSOUND <KILL-SOUNDS>>
<COND (<RESTORE>
<RTRUE>)
(T
%<IFSOUND <COND (<G? .X 1>
<SOUNDS </ .X 16>
,S-START
<MOD .X 16>>)>>
<TELL ,FAILED>)>>
<ROUTINE V-SAVE ("AUX" X)
<PUTB ,OOPS-INBUF 1 0>
<SET X <SAVE>>
%<IFSOUND <COND (<G? <GET ,SOUND-FLAG 0> 1>
<SOUNDS </ <GET ,SOUND-FLAG 0> 16>
,S-START
<MOD <GET ,SOUND-FLAG 0> 16>>)>>
<COND (<ZERO? .X>
<TELL ,FAILED>)
(ELSE
<TELL ,OKAY>)>>
<ROUTINE V-SCORE ("OPTIONAL" (ASK? T))
<TELL
"Your score is " N ,SCORE " of a possible 100, in " N ,MOVES " move">
<COND (<NOT <1? ,MOVES>> <TELL "s">)>
<TELL ". Graded on the curve, you are in the class of "
<GET ,RANKINGS </ ,SCORE 10>>>
<TELL ,PERIOD>
,SCORE>
<GLOBAL RANKINGS
<PTABLE
"Freshman" ;"0"
"Sophomore" ;"10"
"Junior" ;"20"
"Senior" ;"30"
"Graduate Student" ;"40"
"Post-doc Student" ;"50"
"Assistant Professor" ;"60"
"Professor" ;"70"
"Department Head" ;"80"
"Dean of Engineering" ;"90"
"President of the Institute" ;"100">>
<ROUTINE V-SCRIPT ()
<PUT 0 8 <BOR <GET 0 8> 1>>
<TELL
"Start of a transcript of " ,LURKING-HORROR ,PERIOD>
<V-VERSION>>
<ROUTINE V-UNSCRIPT ()
<TELL "End of transcript" ,PERIOD>
<PUT 0 8 <BAND <GET 0 8> -2>>
<RTRUE>>
<GLOBAL LURKING-HORROR "THE LURKING HORROR">
<ROUTINE V-VERSION ()
<TELL
,LURKING-HORROR "|
An Interactive Horror|
Copyright (c) 1987 by Infocom, Inc. All rights reserved.|"
,LURKING-HORROR " is a trademark of Infocom, Inc.|
Release ">
<PRINTN <BAND <GET 0 1> *3777*>>
<TELL " / Serial number ">
<DO (CNT 18 23)
<PRINTC <GETB 0 .CNT>>>
<CRLF>>
<ROUTINE V-$VERIFY ()
<COND (<AND <PRSO? ,INTNUM>
<EQUAL? ,P-NUMBER 1066>>
<TELL N ,SERIAL CR>)
(,PRSO
<TELL ,NOT-RECOGNIZED CR>)
(ELSE
<TELL "Verifying..." CR>
<COND (<VERIFY> <TELL "The disk is correct." CR>)
(T <TELL CR "** Disk Failure **" CR>)>)>>
^\L
;"subtitle real verbs"
<ROUTINE V-WAKE ()
<COND (<PRSO? ,ROOMS>
<NEW-PRSO ,ME>
<RTRUE>)
(T
<TELL
,I-DONT-THINK-THAT THE ,PRSO " is sleeping." CR>)>>
<ROUTINE V-ANSWER ()
<TELL "Nobody is awaiting your answer." CR>
<END-QUOTE>>
"V-ASK-ABOUT -- transform into PRSO, TELL ME ABOUT PRSI"
<ROUTINE PRE-ASK-ABOUT ("AUX" P)
<COND (<AND <NOT ,PRSI>
<SET P <FIND-IN ,HERE ,PERSON>>>
<PERFORM-PRSA .P ,PRSO>
<RTRUE>)>>
<ROUTINE V-ASK-ABOUT ()
<COND (<PRSO? ,ME>
<NEW-VERB ,V?TELL>
<RTRUE>)
(<FSET? ,PRSO ,PERSON>
<NEW-WINNER-PRSO ,V?TELL-ME-ABOUT ,PRSI>
<RTRUE>)
(T
<NEW-VERB ,V?TELL>
<RTRUE>)>>
<ROUTINE FIND-IN (WHERE WHAT "AUX" W)
<MAP-CONTENTS (W .WHERE)
(END <RFALSE>)
<COND (<AND <FSET? .W .WHAT> <VISIBLE? .W>>
<RETURN .W>)>>>
"V-ASK-FOR -- transform into PRSO, GIVE PRSI TO ME"
<ROUTINE PRE-ASK-FOR ()
<PRE-ASK-ABOUT>>
<ROUTINE V-ASK-FOR ()
<COND (<PRSO? ,ME>
<PERFORM ,V?TAKE ,PRSI>
<RTRUE>)
(<FSET? ,PRSO ,PERSON>
<NEW-WINNER-PRSO ,V?GIVE ,PRSI ,ME>
<RTRUE>)
(T
<TELL
"It's unlikely that " THE ,PRSO " will oblige." CR>)>>
<ROUTINE V-ATTACK ()
<IKILL "attack">>
<ROUTINE V-BITE ()
<HACK-HACK "Biting">>
<ROUTINE PRE-BOARD ("AUX" AV)
<SET AV <LOC ,WINNER>>
<COND (<FSET? ,PRSO ,VEHBIT>
<COND (<EQUAL? .AV ,PRSO>
<TELL ,YOU-ARE ,PERIOD>)
(<AND <FSET? .AV ,VEHBIT>
<HELD? ,PRSO .AV>>
<TELL ,YOU-HAVE-TO "leave " THE .AV " first" ,PERIOD>)
(T
<RFALSE>)>)
(T
<TELL ,YOU-CANT "get into " THE ,PRSO "!" CR>)>
<RFATAL>>
<ROUTINE YOU-ARE-IN (AV)
<TELL ,YOU-ARE
<COND (<FSET? .AV ,SURFACEBIT> " on ")
(ELSE " in ")>
THE .AV "!" CR>>
<ROUTINE V-BOARD ("AUX" AV)
<TELL ,YOU-ARE-NOW "in ">
<THE-PRSO>
<MOVE ,WINNER ,PRSO>
%<DEBUG-CODE <D-APPLY "Get in" <GETP ,PRSO ,P?ACTION> ,M-ENTER>
<APPLY <GETP ,PRSO ,P?ACTION> ,M-ENTER>>
<RTRUE>>
<ROUTINE V-BURN ()
<COND (<NOT ,PRSI>
<TELL "Your blazing gaze is insufficient." CR>)
(T
<WITH-PRSI?>)>>
<ROUTINE V-CHASTISE ()
<TELL
"Use prepositions instead: LOOK AT the object, LOOK INSIDE it,
LOOK UNDER it, etc." CR>>
<ROUTINE V-CLIMB-DOWN ()
<COND (<PRSO? ,ROOMS>
<DO-WALK ,P?DOWN>)
(T
<TELL ,WASTE-OF-TIME>)>>
<ROUTINE V-CLIMB-FOO ()
<COND (<PRSO? ,ROOMS>
<DO-WALK ,P?UP>)
(T
<TELL ,WASTE-OF-TIME>)>>
<ROUTINE V-CLIMB-ON ()
<COND (<AND <FSET? ,PRSO ,VEHBIT>
<FSET? ,PRSO ,SURFACEBIT>>
<NEW-VERB ,V?BOARD>
<RTRUE>)
(T
<TELL ,YOU-CANT "climb onto "><A-PRSO>)>>
<ROUTINE V-CLIMB-OVER ()
<YOU-CANT-X-THAT "do">>
<ROUTINE V-CLIMB-UP ()
<COND (<PRSO? ,ROOMS>
<DO-WALK ,P?UP>)
(T
<TELL ,WASTE-OF-TIME>)>>
<ROUTINE V-CLOSE ()
<COND (<AND <NOT <FSET? ,PRSO ,OPENBIT>>
<FSET? ,PRSO ,OPENABLE>>
<TELL CTHE ,PRSO " is already closed." CR>)
(<OR <FSET? ,PRSO ,SURFACEBIT>
<AND <NOT <FSET? ,PRSO ,CONTBIT>>
<NOT <FSET? ,PRSO ,DOORBIT>>>>
<TELL "There's no way to close "><THE-PRSO>)
(<FSET? ,PRSO ,PERSON>
<TELL "Huh?" CR>)
(<NOT <EQUAL? <GETP ,PRSO ,P?CAPACITY> 0>>
<COND (<FSET? ,PRSO ,OPENBIT>
<FCLEAR ,PRSO ,OPENBIT>
<TELL "Closed">
<IN-DARK?>)
(T
<ALREADY-CLOSED>)>)
(<FSET? ,PRSO ,DOORBIT>
<CLOSE-A-DOOR>)
(T
<YOU-CANT-X-THAT "close">)>>
<ROUTINE CLOSE-A-DOOR ()
<COND (<FSET? ,PRSO ,OPENBIT>
<OKAY-THE-PRSO-IS-NOW "closed">
<FCLEAR ,PRSO ,OPENBIT>)
(T
<ALREADY-CLOSED>)>>
<ROUTINE IN-DARK? ("OPT" (DIE? <>) "AUX" OLIT)
<SET OLIT ,LIT>
<SETG LIT <LIT? ,HERE>>
<COND (<AND .OLIT <NOT ,LIT>>
<TELL
", leaving you in the dark." CR>
<COND (.DIE?
<CRLF>
<TELL "Not alone, however. ">
<JIGS-UP ;"this string is a duplicate of one in GOTO"
"One should never assume the dark is safe.
Something just grabbed you from behind and dragged you
off to its lair.">)
(ELSE <RTRUE>)>)
(ELSE <TELL ,PERIOD>)>>
<ROUTINE OKAY-THE-PRSO-IS-NOW (STR)
<TELL "Okay, " THE ,PRSO " is now " .STR ,PERIOD>>
<ROUTINE V-COMPARE-MANY ()
<COND (<EQUAL? <GET ,P-PRSO 0> 2>
<SETG P-MULT <>>
<PERFORM ,V?COMPARE <GET ,P-PRSO 1> <GET ,P-PRSO 2>>
<RFATAL>)
(ELSE
<TELL "You can only compare two things." CR>)>>
<ROUTINE V-WASTE-OF-TIME ()
<TELL ,WASTE-OF-TIME>>
<ROUTINE V-COMPARE ()
<COND (<AND <PRSO? RAT-SYMBOL STONE-SYMBOL CARVING-SYMBOL TATTOO CARTON>
<PRSI? RAT-SYMBOL STONE-SYMBOL CARVING-SYMBOL TATTOO CARTON>>
<TELL
"Allowing for the different media in which the symbols are executed,
they are identical." CR>)
(ELSE
<TELL ,WASTE-OF-TIME>)>>
;<ROUTINE V-COUNT ()
<TELL ,WASTE-OF-TIME>>
<ROUTINE V-CROSS ()
<YOU-CANT-X-THAT "cross">>
<ROUTINE V-CURSE ()
<TELL
"Language like that was until recently grounds for probation!" CR>>
<ROUTINE V-CUT ()
<COND (<FSET? ,PRSO ,PERSON>
<NEW-VERB ,V?KILL>
<RTRUE>)
(<OR <NOT ,PRSI> <NOT <FSET? ,PRSI ,WEAPONBIT>>>
<COND (<OR <NOT ,PRSI> <INTRINSIC? ,PRSI>>
<TELL "Your body">)
(ELSE
<TELL CTHE ,PRSI>)>
<TELL
" has an inadequate \"cutting edge.\"" CR>)
(T
<TO-A-PRSO?>)>>
;<ROUTINE V-DIG ()
<TELL ,WASTE-OF-TIME>>
<ROUTINE V-DISEMBARK ("AUX" AV)
<SET AV <LOC ,WINNER>>
<COND (<OR <NOT ,PRSO>
<PRSO? ,ROOMS>>
<COND (<AND .AV <FSET? .AV ,VEHBIT>>
<NEW-PRSO .AV>
<RTRUE>)
;(<FSET? ,HERE ,RWATERBIT>
<DO-WALK ,P?UP>)
(ELSE
<TELL ,YOU-ARENT "in anything." CR>)>)
(<AND .AV
<FSET? .AV ,VEHBIT>>
<COND (<AND <NOT <EQUAL? .AV ,PRSO>>
<NOT <HELD? .AV ,PRSO>>>
<YOU-ARE-IN .AV>
<RFATAL>)
(T
<MOVE ,WINNER <LOC ,PRSO>> ;"for vehicle in vehicle"
<TELL ,YOU-ARE-NOW "on your feet." CR>)>)
(<LOC ,PRSO>
<NEW-VERB ,V?TAKE>
<RTRUE>)
(ELSE
<TELL "It's not in anything." CR>)>>
<ROUTINE V-DRINK ("AUX" S)
<YOU-CANT-X-THAT "drink">>
<ROUTINE V-DRINK-FROM ("AUX" X)
<COND ;(<PRSO? ,WATER>
<PERFORM ,V?DRINK ,PRSO>
<RTRUE>)
(T
<TO-A-PRSO?>)>>
<ROUTINE PRE-DROP ()
<COND (<OR <AND <PRSO? ,ROOMS ,CABLE>
,ON-CABLE?>
<PRSO? <LOC ,WINNER>>>
<NEW-VERB ,V?DISEMBARK>
<RTRUE>)>>
<ROUTINE V-DROP ()
<COND (<PRSO? ,ROOMS>
<TELL ,YOU-ARENT "hanging from anything." CR>)
(<IDROP>
<TELL "Dropped." CR>)
(ELSE <RTRUE>)>>
<ROUTINE V-EAT ("AUX" H)
<COND (<AND <GETPT ,PRSO ,P?HEAT>
<FSET? ,PRSO ,FOODBIT>>
<TELL "It tastes " <HEAT ,PRSO> ,PERIOD>)
(ELSE
<TELL
"The food here is terrible, but this is ridiculous!" CR>)>>
<ROUTINE V-ENTER ("AUX" VEHICLE)
<COND (<IN? ,PENTAGRAM ,HERE>
<PERFORM ,V?BOARD ,PENTAGRAM>
<RTRUE>)
(<GETPT ,HERE ,P?IN>
<DO-WALK ,P?IN>)
(ELSE
<V-WALK-AROUND>)>>
<ROUTINE PRE-EXAMINE ()
<COND (<NOT ,LIT>
<TELL ,TOO-DARK>)
(<FSET? ,PRSO ,SLIMEBIT>
<TELL "First, it's covered with slime. ">
<RFALSE>)>>
<ROUTINE V-EXAMINE ("AUX" H)
<COND (<AND <FSET? ,PRSO ,READBIT>
<GETP ,PRSO ,P?TEXT>>
<NEW-VERB ,V?READ>
<RTRUE>)
(<FSET? ,PRSO ,DOORBIT>
<V-LOOK-INSIDE>)
(<FSET? ,PRSO ,CONTBIT>
<COND (<FSET? ,PRSO ,OPENBIT>
<V-LOOK-INSIDE>)
(T
<TELL S "It's closed.|">)>)
(<GETPT ,PRSO ,P?HEAT>
<TELL "It looks " <HEAT ,PRSO> ,PERIOD>)
(T
<PRSO-NOTHING-SPECIAL>)>>
<ROUTINE PRSO-NOTHING-SPECIAL ()
<TELL S "You see nothing special about ">
<THE-PRSO>>
<ROUTINE V-EXIT ()
<COND (<AND ,PRSO <FSET? ,PRSO ,VEHBIT>>
<NEW-VERB ,V?DISEMBARK>
<RTRUE>)
(<GETPT ,HERE ,P?OUT>
<DO-WALK ,P?OUT>)
(ELSE
<V-WALK-AROUND>)>>
<ROUTINE V-FILL ()
<COND (<NOT ,PRSI>
<TELL
,THERES-NOTHING-TO "fill it with" ,PERIOD>)
(T
<TELL-YUKS>)>>
<ROUTINE V-FIND ("OPT" (WHERE <>) "AUX" L)
<COND (<INTRINSIC? ,PRSO>
<TELL
"Nearby, I'm sure">)
(<IN? ,PRSO ,PLAYER>
<TELL "You have it">)
(<OR <IN? ,PRSO ,HERE>
<PRSO? ,PSEUDO-OBJECT>>
<TELL "Right in front of you">)
(<OR <IN? ,PRSO ,LOCAL-GLOBALS>
<IN? ,PRSO ,GLOBAL-OBJECTS>>
<TELL "It could be lurking right behind you">)
(ELSE
<SET L <LOC ,PRSO>>
<COND (<AND <EQUAL? .L ,URCHIN>
<VISIBLE? .L>>
<TELL "Maybe an urchin ripped it off">)
(<AND <FSET? .L ,PERSON>
<VISIBLE? .L>>
<TELL "I think " THE .L " has it">)
(<ACCESSIBLE? ,PRSO>
<TELL "It's in " THE .L>)
(.WHERE
<TELL "Beats me">)
(T
<TELL ,YOU-HAVE-TO "do that yourself">)>)>
<TELL ,PERIOD>>
<ROUTINE V-FOLLOW ()
<COND (<AND ,PRSO <IN? ,PRSO ,HERE>>
<TELL CTHE ,PRSO " is right here!" CR>)
(T
<TELL ,WASTE-OF-TIME>)>>
<ROUTINE PRE-GIVE ()
<COND (<AND <WINNER? ,PLAYER>
<NOT <HELD? ,PRSO>>>
<TELL
,YOU-HAVE-TO "get it first." CR>)>>
<ROUTINE V-GIVE ()
<COND (<NOT <FSET? ,PRSI ,PERSON>>
<TELL ,YOU-CANT "give " A ,PRSO " to " A ,PRSI "!" CR>)
(T
<UNINTERESTED ,PRSI>)>>
<ROUTINE V-HELLO ("AUX" OWINNER)
<COND (,PRSO
<COND (<FSET? ,PRSO ,PERSON>
<NEW-WINNER-PRSO ,PRSA>
<RTRUE>)
(T
<TELL
"Serious college students never say \"Hello\" to "><A-PRSO>)>)
(T
<TELL "Cheery, aren't you?" CR>)>>
<ROUTINE V-HELP ()
<COND (,PRSO
<TELL
CTHE ,PRSO S " doesn't appear to ""want help." CR>)
(<IN? ,PC ,HERE>
<PERFORM ,V?PUSH ,HELP-KEY>
<RTRUE>)
(ELSE
<TELL
"If you're really stuck, you can order maps and InvisiClues Hint
Booklets using the order form that came in your package." CR>)>>
<ROUTINE V-HIDE ()
<COND (<NOT ,PRSO>
<TELL "There's no place to hide here." CR>
<RFATAL>)
(<AND ,PRSI <FSET? ,PRSI ,PERSON>>
<UNINTERESTED ,PRSI>)
(<NOT ,PRSI>
<TELL ,WASTE-OF-TIME> ;"useless")>>
<ROUTINE V-HIDE-FROM ()
<TELL ,YOU-HAVE-TO "decide where." CR>>
<ROUTINE V-KICK ()
<HACK-HACK "Kicking">>
<ROUTINE V-KILL ()
<IKILL "kill">>
<ROUTINE IKILL (STR)
<COND (<NOT ,PRSO>
<TELL ,THERES-NOTHING-TO .STR " here." CR>)>
<COND (<FSET? ,PRSO ,DOORBIT>
<TELL
"Pounding on a door is of little use." CR>)
(<NOT <FSET? ,PRSO ,PERSON>>
<TO-A-PRSO?>)
(<OR <PRSI? <> ,HANDS>
<NOT <FSET? ,PRSI ,WEAPONBIT>>>
<TELL
"Trying to " .STR " " THE ,PRSO " with ">
<COND (<NOT <PRSI? <> ,HANDS>>
<TELL A ,PRSI>)
(ELSE <TELL "your bare hands">)>
<TELL " is suicidal." CR>)
(<NOT <IN? ,PRSI ,WINNER>>
<NOT-HOLDING ,PRSI>)
(T
<NOT-TRAINED>)>>
<ROUTINE NOT-TRAINED ()
<TELL
"You miss. (Now you know why few technical schools make it to the
Rose Bowl.)" CR>>
<ROUTINE V-KNOCK ()
<COND (<FSET? ,PRSO ,DOORBIT>
<TELL "Nobody's home." CR>)
(T
<TELL "Why knock on "> <A-PRSO?>)>>
<ROUTINE V-KISS ()
<COND (<FSET? ,PRSO ,PERSON>
<UNINTERESTED ,PRSO>)
(ELSE <TELL-YUKS>)>>
<ROUTINE V-LAMP-OFF ()
<TO-A-PRSO?> ;"flashlight is only light source">
<ROUTINE V-LAMP-ON ()
<TO-A-PRSO?>>
<ROUTINE V-LEAN-ON ()
<TELL "Tired?" CR>>
<ROUTINE V-LEAP ()
<COND (<AND ,PRSO <IN? ,PRSO ,HERE>>
<V-SKIP>)
(<HERE? CS-ROOF ON-DOME>
<JIGS-UP
"It was a long way down. It was quick, though.">)
(T
<TELL ,GOOD-TRICK>)>>
<ROUTINE V-LEAVE ()
<DO-WALK ,P?OUT>>
<ROUTINE V-LISTEN ()
<COND (<HERE? ,YUGGOTH ,BOWL-ROOM ,PLATFORM-ROOM>
<TELL
"The sounds here are harsh and discordant." CR>)
(<HERE? ,CAVE-ALTAR ,CAVE-ROOM>
<I-PANEL-NOISES T>)
(<AND ,PRSO <NOT <PRSO? ,NOISE>>>
<TELL
"At the moment, " THE ,PRSO " is as quiet as a graveyard." CR>)
(<AND <IN-TUNNEL? ,RATS>
<IN-TUNNEL? ,WINNER>>
<TELL ,RATS-CHITTERING>)
(<PROB 90>
<TELL
"You hear nothing unsettling." CR>)
(ELSE
<TELL
"You hear a very odd noise, sort of like breathing." CR>)>>
<ROUTINE V-LOCK ()
<TELL CTHE ,PRSO " doesn't have a lock." CR>>
<ROUTINE V-FIRST-LOOK ()
<COND (<DESCRIBE-ROOM <G? ,VERBOSITY 1>>
<COND (,VERBOSITY <DESCRIBE-OBJECTS>)>)>>
<ROUTINE V-LOOK ()
<COND (<DESCRIBE-ROOM T>
<DESCRIBE-OBJECTS>)>>
<ROUTINE V-LOOK-BEHIND ()
<COND (<AND <NOT <FSET? ,PRSO ,OPENBIT>>
<NOT <FSET? ,PRSO ,SURFACEBIT>>
<OR <FSET? ,PRSO ,CONTBIT>
<FSET? ,PRSO ,DOORBIT>>>
<INSPECTION-REVEALS ,PRSO>)
(ELSE
<TELL ,THERE-IS-NOTHING "behind "><THE-PRSO>)>>
<ROUTINE V-LOOK-DOWN ()
<COND (<NOT ,LIT>
<TELL ,TOO-DARK>)
(<PRSO? <> ,ROOMS ,GLOBAL-HOLE>
<COND (<GLOBAL-IN? ,GLOBAL-HOLE ,HERE>
<PERFORM ,V?LOOK-INSIDE ,GLOBAL-HOLE>)
(ELSE
<PERFORM ,V?EXAMINE ,GROUND>)>
<RTRUE>)
(ELSE
<PRSO-NOTHING-SPECIAL>)>>
<ROUTINE WHAT-CONTENTS ()
<COND (<NOT <DESCRIBE-CONTENTS ,PRSO>>
<TELL "nothing">
<COND (<IN? ,PLAYER ,PRSO>
<TELL " (other than you)">)>)>
<TELL ,PERIOD>>
<ROUTINE V-LOOK-INSIDE ()
<COND (<FSET? ,PRSO ,PERSON>
<PRSO-NOTHING-SPECIAL>)
(<FSET? ,PRSO ,SURFACEBIT>
<TELL "On " THE ,PRSO " is ">
<WHAT-CONTENTS>)
(<FSET? ,PRSO ,DOORBIT>
<THIS-IS-IT ,PRSO>
<TELL "All you can tell is that ">
<TELL-OPEN-CLOSED>)
(<FSET? ,PRSO ,CONTBIT>
<COND (<PRSO? <LOC ,WINNER>>
<MOVE ,PLAYER ,ROOMS>
<TELL "Aside from you, there's ">
<WHAT-CONTENTS>
<MOVE ,PLAYER ,PRSO>)
(<SEE-INSIDE? ,PRSO>
<TELL CTHE ,PRSO " contains ">
<WHAT-CONTENTS>)
(<AND <NOT <FSET? ,PRSO ,OPENBIT>>
<FIRST? ,PRSO>>
<NEW-VERB ,V?OPEN>
<RTRUE>)
(T
<THIS-IS-IT ,PRSO>
<TELL "It seems ">
<TELL-OPEN-CLOSED>)>)
(T
<YOU-CANT-X-PRSO "look inside">)>>
<ROUTINE V-LOOK-UNDER ()
<COND (<HELD? ,PRSO>
<TELL "You're already holding it!" CR>)
(T
<TELL ,THERE-IS-NOTHING "there." CR>)>>
<ROUTINE V-LOWER ()
<HACK-HACK "Lowering">>
<ROUTINE V-LOWER-INTO ()
<V-LOWER>>
<ROUTINE V-MELT ()
<WITH-PRSI?>>
<ROUTINE V-MOVE ()
<COND (<HELD? ,PRSO>
<TELL
"You're holding it. Are you planning to juggle it?" CR>)
(<AND <FSET? ,PRSO ,TAKEBIT>
<NOT <FSET? ,PRSO ,PERSON>>>
<V-TURN-OVER>)
(T
<YOU-CANT-X-PRSO "move">)>>
<ROUTINE HOSTILE-VERB? ()
<VERB? ATTACK BITE CUT KICK KILL MUNG RUB PUSH MOVE THROW>>
"verbs which don't require object to exist/be nearby"
<ROUTINE ABSTRACT-VERB? ()
<VERB? ASK-ABOUT ASK-FOR FIND
TELL-ME-ABOUT TELL-ABOUT WHAT WHERE>>
"verbs with no object or which don't require touching their object."
<ROUTINE PASSIVE-VERB? ()
<OR <ABSTRACT-VERB?>
<VERB? COMPARE COUNT CURSE DIE DISEMBARK
EXAMINE HELLO LISTEN LOOK-BEHIND LOOK-DOWN
LOOK-INSIDE LOOK-UNDER POINT READ REPLY
SAY SCARE SHOW TELL THANK
WAIT WAIT-FOR WALK WAVE-AT YAWN
YELL>>>
<ROUTINE V-MUNG ()
<HACK-HACK "Trying to break">>
<ROUTINE PRE-OPEN ()
<COND (<AND <IN? ,PRSO ,MICROWAVE>
<NOT <FSET? ,MICROWAVE ,OPENBIT>>>
<YOU-CANT-X-THAT "get to">)
(<OR <FSET? ,PRSO ,PERSON>
<PRSO? ,DEAD-RAT ,HAND>>
<TELL "What a grisly idea." CR>)
(<AND ,PRSI
<NOT <PRSI? ,FORKLIFT>>
<NOT <HELD? ,PRSI>>>
<NOT-HOLDING ,PRSI>)>>
<ROUTINE V-OPEN ("AUX" F STR)
<COND (<AND <FSET? ,PRSO ,OPENBIT>
<FSET? ,PRSO ,OPENABLE>>
<TELL CTHE ,PRSO " is already open." CR>)
(<OR <AND <NOT <FSET? ,PRSO ,CONTBIT>>
<NOT <FSET? ,PRSO ,DOORBIT>>>
<FSET? ,PRSO ,SURFACEBIT>>
<TO-A-PRSO?>)
(<NOT <EQUAL? <GETP ,PRSO ,P?CAPACITY> 0>>
<COND (<NOT <FSET? ,PRSO ,OPENBIT>>
<FSET ,PRSO ,OPENBIT>
<FSET ,PRSO ,TOUCHBIT>
<COND (<OR <NOT <FIRST? ,PRSO>>
<FSET? ,PRSO ,TRANSBIT>>
<TELL "Opened." CR>)
(<AND <SET F <FIRST? ,PRSO>>
<NOT <NEXT? .F>>
<SET STR <GETP .F ,P?FDESC>>>
<OKAY-THE-PRSO-IS-NOW "open">
<TELL .STR CR>)
(T
<TELL "Opening ">
<TELL THE ,PRSO " reveals ">
<WHAT-CONTENTS>)>)>)
(T ;"door"
<COND (<FSET? ,PRSO ,OPENBIT>
<ALREADY-OPEN>)
(<FSET? ,PRSO ,LOCKED>
<TELL "It's locked." CR>)
(T
<FSET ,PRSO ,OPENBIT>
<OKAY-THE-PRSO-IS-NOW "open">)>)>>