-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpuzzles.zil
1663 lines (1560 loc) · 58 KB
/
puzzles.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
;*****************************************************************************
; "game : SHERLOCK!"
; "file : PUZZLES.ZIL"
; "auth : $Author: DEB $"
; "date : $Date: 28 Oct 1987 17:06:56 $"
; "rev : $Revision: 1.115 $"
; "vers : 1.00"
;*****************************************************************************
<ROUTINE RT-EXAMINE-GEM (GEM)
<COND (<AND <==? .GEM ,TH-SAPPHIRE>
<IN? ,TH-SAPPHIRE ,TH-CLAPPER>>
<TELL "The sapphire is hanging from the end of the clapper."CR>
<RTRUE>)
(<EQUAL? <LOC .GEM> ,CH-PLAYER>
<COND (<MC-VERB? EXAMINE LOOK-ON>
<TELL "It looks as if there is a scratch on " THEO "." CR>)
(<MC-VERB? READ>
<TELL "All you can see on " THEO " is a scratch." CR>)
(<AND <MC-VERB? LOOK-THRU>
<MC-PRSI? ,TH-MAGNIFYING-GLASS>>
<COND (<IN? ,TH-MAGNIFYING-GLASS ,GL-WINNER>
<TELL "You see \"">
<COND (<EQUAL? .GEM ,TH-SAPPHIRE>
<TELL "2:00 a.m.">)
(<EQUAL? .GEM ,TH-EMERALD>
<TELL "20/6/87">)
(<EQUAL? .GEM ,TH-OPAL>
<TELL "Password: Swordfish">)
(<EQUAL? .GEM ,TH-RUBY>
<TELL "Wear a carnation">)
(<EQUAL? .GEM ,TH-TOPAZ>
<TELL "Bar of Gold">)
(<EQUAL? .GEM ,TH-GARNET>
<TELL "Give me to Akbar">)>
<TELL "\" scratched into the surface of " THEO "." CR>
<COND (<MC-F? <BAND ,CH-HOLMES-AUX1 ,K-HOLMES-GEM?>>
<SETG CH-HOLMES-AUX1 <BOR ,CH-HOLMES-AUX1
,K-HOLMES-GEM?>>
<MOVE ,TH-RING ,CH-PLAYER>
<MC-MAKE ,TH-RING ,FL-SEEN>
<MC-MAKE ,TH-RING ,FL-TOUCHED>
<MC-UNMAKE ,TH-RING ,FL-NODESC>
<CRLF>
<TELL "Holmes">
<RT-HOLMES-SAYS-AGRA-MSG>
<RT-UPDATE-SCORE <GETP ,TH-RING ,P?VALUE>>
<PUTP ,TH-RING ,P?VALUE 0>)>)
(T
<RT-YOUD-HAVE-TO-MSG "be holding" ,TH-MAGNIFYING-GLASS>)>
<RTRUE>)>)
(T
<COND (<MC-VERB? READ>
<RT-CYOU-MSG>
<RT-WOULD-HAVE-TO-MSG "be holding" ,GL-PRSO>
<TELL " to read ">
<RT-SAY-HIM-HER-THEM-IT-MSG ,GL-PRSO>
<TELL "." CR>)
(<AND <MC-VERB? LOOK-THRU>
<MC-PRSI? ,TH-MAGNIFYING-GLASS>>
<RT-CYOU-MSG>
<RT-WOULD-HAVE-TO-MSG "be holding" ,GL-PRSO>
<TELL ,K-GOOD-LOOK-MSG CR>)
(<MC-VERB? EXAMINE LOOK-ON>
<RT-CYOU-MSG>
<RT-WOULD-HAVE-TO-MSG "be holding" ,GL-PRSO>
<TELL ,K-GOOD-LOOK-MSG CR>)>)>>
<ROUTINE RT-HANDLE-SCRATCH (GEM "OPT" (CONTEXT <>))
<COND (<==? .CONTEXT ,K-M-SDESC>
<PUTP .GEM ,P?OBJ-NOUN 0>
<TELL D .GEM>
<PUTP .GEM ,P?OBJ-NOUN ,W?SCRATCH>
<TELL "'s scratch">
<RTRUE>)
(<N==? .CONTEXT ,K-M-DESCFCN> RFALSE)>
<COND (<EQUAL? <LOC .GEM> ,CH-PLAYER>
<COND (<MC-VERB? EXAMINE>
<TELL "It looks like very tiny writing." CR>)
(<MC-VERB? READ>
<TELL "It is too tiny." CR>)
(<AND <MC-VERB? LOOK-THRU>
<MC-PRSI? ,TH-MAGNIFYING-GLASS>>
<COND (<IN? ,TH-MAGNIFYING-GLASS ,GL-WINNER>
<TELL "You see \"">
<COND (<EQUAL? .GEM ,TH-SAPPHIRE>
<TELL "2:00 a.m">)
(<EQUAL? .GEM ,TH-EMERALD>
<TELL "20/6/87">)
(<EQUAL? .GEM ,TH-OPAL>
<TELL "Password: Swordfish">)
(<EQUAL? .GEM ,TH-RUBY>
<TELL "Wear a carnation">)
(<EQUAL? .GEM ,TH-TOPAZ>
<TELL "Bar of Gold">)
(<EQUAL? .GEM ,TH-GARNET>
<TELL "Give me to Akbar">)>
<TELL ".\"" CR>
<COND (<MC-F? <BAND ,CH-HOLMES-AUX1
,K-HOLMES-GEM?>>
<SETG CH-HOLMES-AUX1 <BOR
,CH-HOLMES-AUX1
,K-HOLMES-GEM?>>
<MOVE ,TH-RING ,CH-PLAYER>
<MC-MAKE ,TH-RING ,FL-SEEN>
<MC-MAKE ,TH-RING ,FL-TOUCHED>
<MC-UNMAKE ,TH-RING ,FL-NODESC>
<CRLF>
<TELL "Holmes">
<RT-HOLMES-SAYS-AGRA-MSG>
<RT-UPDATE-SCORE <GETP ,TH-RING ,P?VALUE>>
<PUTP ,TH-RING ,P?VALUE 0>)>)
(T
<RT-YOUD-HAVE-TO-MSG "be holding"
,TH-MAGNIFYING-GLASS>)>
<RTRUE>)>)
(T
<COND (<OR <AND <MC-VERB? LOOK-THRU>
<MC-PRSI? ,TH-MAGNIFYING-GLASS>>
<MC-VERB? EXAMINE READ>>
<RT-CYOU-MSG>
<RT-WOULD-HAVE-TO-MSG "be holding" .GEM>
<COND (<MC-VERB? READ>
<TELL " to read the scratch." CR>)
(T
<TELL ,K-GOOD-LOOK-MSG CR>)>)>)>>
; "GL-HOLES is used to store the room and object 'containing' each of the"
; "six bullet holes."
<CONSTANT GL-HOLES:TABLE
<TABLE
0 ;"Next empty slot"
;"Obj Room"
0 0
0 0
0 0
0 0
0 0
0 0>>
<ROUTINE RT-HOLE? (OBJ "AUX" OFF (CNT 0) (NUM 0) PLACE)
<REPEAT ()
<SET OFF <* .NUM 2>>
<COND (<EQUAL? .NUM <GET ,GL-HOLES 0>>
<RETURN>)
(<EQUAL? .OBJ <GET ,GL-HOLES <+ .OFF 1>>>
<COND (<OR <MC-F? <SET PLACE <GET ,GL-HOLES <+ .OFF 2>>>>
<MC-HERE? .PLACE>>
<INC CNT>)>)>
<INC NUM>>
<RETURN .CNT>>
<ROUTINE RT-WASTE-OF-BULLETS-MSG ("AUX" WHO)
<SET WHO <RT-WHO-SAYS?>>
<COND (<EQUAL? .WHO ,CH-HOLMES>
<TELL
"Holmes glances at you and says, \"Save your ammunition, Watson. More danger
may lie ahead.\"" CR>)
(<EQUAL? .WHO ,CH-WIGGINS>
<TELL
"Wiggins looks at you impatiently and says, \"'Ow in the name of Dick
Whittington is shooting " AO " going to help Mr 'Olmes?\"" CR>)
(T
<TELL "That would be a waste of bullets." CR>)>
<RTRUE>>
<ROUTINE RT-SHOOT-DEAD-MSG ("AUX" WHO)
<SET WHO <RT-WHO-SAYS?>>
<COND (<EQUAL? .WHO ,CH-HOLMES>
<TELL
"Holmes lifts an eyebrow and says sardonically, \"Is shooting dead people a
new trend in medical research, Doctor?\"" CR>)
(<EQUAL? .WHO ,CH-WIGGINS>
<TELL
"Wiggins tugs at your sleeve and whispers nervously, \"Everyone here is
already dead... aren't they?\"" CR>)
(T
<TELL
"Have you no decency? Have you no shame? No? Then a bright future awaits you
in the legal profession. Apply now to the law school of your choice." CR>)>>
<ROUTINE RT-READ-NEWSPAPER ()
<TELL "It's the newspaper that came in your game package." CR>
;<COND (<AND <OR <MC-IS? ,TH-NEWSPAPER ,FL-OPENED>
<EQUAL? <GETP ,TH-NEWSPAPER ,P?FLIPPED> 1>>
<MC-VERB? READ-TO SHOW>>
<RT-CYOU-MSG "turn" "turns">
<TELL THE ,TH-NEWSPAPER " to the front page." CR>
<COND (<MC-IS? ,TH-NEWSPAPER ,FL-ASLEEP>
<CRLF>)>
<MC-UNMAKE ,TH-NEWSPAPER ,FL-OPENED>
<PUTP ,TH-NEWSPAPER ,P?FLIPPED 0>)>
;<COND (<MC-IS? ,TH-NEWSPAPER ,FL-OPENED>
<TELL "It's the newspaper that came in your game package." CR>)
(<EQUAL? <GETP ,TH-NEWSPAPER ,P?FLIPPED> 1>
<TELL "It's the newspaper that came in your game package." CR>)
(<OR <MC-IS? ,TH-NEWSPAPER ,FL-ASLEEP>
<MC-VERB? READ>>
<TELL "It's the newspaper that came in your game package." CR>
<MC-UNMAKE ,TH-NEWSPAPER ,FL-ASLEEP>)>>
<ROUTINE RT-WAKE-UP-HOLMES ()
<MC-UNMAKE ,CH-HOLMES ,FL-ASLEEP>
<MC-MAKE ,LG-PARLOUR-DOOR ,FL-OPENED>
<REMOVE ,TH-PHIAL>
<REMOVE ,TH-MOROCCO-CASE>
<REMOVE ,TH-SYRINGE>
<RT-ALARM-SET-REL ,RT-I-PM-HALL <RT-PARM-SET 0 1 0>>
<RT-ALARM-CLR ,RT-I-PM-QUITS>
<TELL "Holmes ">
<COND (<EQUAL? ,TH-NEWSPAPER ,GL-PRSO ,GL-PRSI>
<TELL
"glances at the paper and his eye falls on the notice about the Tower
of London. He ">)>
<TELL
"immediately leaps to his feet and hurls the phial and the case
into the fireplace. The phial and the syringe shatter, and the liquid
evaporates instantly, but the detective does not even notice. ">
<COND (<MC-PRSI? ,CH-PRIME-MINISTER>
<TELL
"\"A client?\" he exclaims. \"On government business? Most interesting.\"">)
(T
<TELL
"\"They've closed the Tower?\" he exclaims. \"Most singular.\"">)>
<CRLF>
<RT-UPDATE-SCORE 5>
<TELL CR
"Holmes strides to the door and calls down to Mrs Hudson to bring up a tray
of food. Then he plops back down on the sofa, ">
<COND (<AND <MC-PRSI? ,CH-PRIME-MINISTER>
<NOT <RT-META-IN? ,TH-NEWSPAPER ,CH-PLAYER>>
<EQUAL? <RT-META-LOC ,TH-NEWSPAPER> ,RM-HOLMES-STUDY>>
<TELL "glances at the newspaper, and then ">)>
<TELL
"makes a steeple of his fingertips and focuses his intense gaze upon
you." CR>>
<ROUTINE RT-I-PM-HALL ()
<MC-MAKE ,CH-HUDSON ,FL-NODESC>
<MOVE ,CH-PRIME-MINISTER ,RM-ENTRY-HALL>
<MOVE ,CH-HUDSON ,RM-ENTRY-HALL>
<RT-ALARM-SET-REL ,RT-I-PM-VESTIBULE <RT-PARM-SET 0 1 0>>
<COND (<MC-HERE? ,RM-VESTIBULE>
<TELL
CR "Mrs Hudson and the visitor emerge from the parlour and appear to be on
their way upstairs." CR>)>>
<ROUTINE RT-I-PM-VESTIBULE ()
<MOVE ,CH-PRIME-MINISTER ,RM-VESTIBULE>
<MOVE ,CH-HUDSON ,RM-VESTIBULE>
<RT-ALARM-SET-REL ,RT-I-HUDSON <RT-PARM-SET 0 1 0>>
<COND (<AND <MC-HERE? ,RM-VESTIBULE>
<NOT <EQUAL? ,GL-PLACE-PRV ,RM-ENTRY-HALL>>>
<TELL
CR "Mrs Hudson and the visitor arrive at the top of the stairs on their way
into Holmes's study." CR>)
(<AND <MC-HERE? ,RM-ENTRY-HALL>
<EQUAL? ,GL-PLACE-PRV ,RM-VESTIBULE>>
<TELL
CR "Mrs Hudson and the visitor passed you on the stairs." CR>)>>
<ROUTINE RT-I-HUDSON ("AUX" NUM)
<MOVE ,CH-PRIME-MINISTER ,RM-HOLMES-STUDY>
<REMOVE ,CH-HUDSON>
<MC-UNMAKE ,CH-HUDSON ,FL-NODESC>
<SET NUM ,RM-HOLMES-STUDY-AUX1>
<COND (<EQUAL? .NUM 0>
<COND (<MC-HERE? ,RM-VESTIBULE>
<TELL
CR "Mrs Hudson ushers the visitor into " THE ,RM-HOLMES-STUDY " and goes
downstairs." CR>)
(<MC-HERE? ,RM-ENTRY-HALL>
<TELL
CR "You see Mrs Hudson come down the stairway." CR>)>)>
<COND (<OR <MC-HERE? ,RM-HOLMES-STUDY>
<EQUAL? ,RM-HOLMES-STUDY-AUX1 3>>
<MOVE ,TH-WESTMINSTER-CLUE ,CH-PLAYER>
<MC-MAKE ,TH-WESTMINSTER-CLUE ,FL-SEEN>
<MC-MAKE ,CH-PRIME-MINISTER ,FL-SEEN>
<RT-ALARM-SET-REL ,RT-I-PM-LEAVE <RT-PARM-SET 0 3 0>>
<COND (<AND <MC-HERE? ,RM-HOLMES-STUDY>
<EQUAL? .NUM 0>>
<TELL
CR "Mrs Hudson appears at the door, accompanied by a worried-looking
gentleman." CR CR
"Holmes jumps up and ushers the gentleman to the armchair,
dismissing Mrs Hudson at the same time. \"Watson,\" he says, \"I am sure
you recognize our distinguished visitor. ">)
(<AND <MC-HERE? ,RM-HOLMES-STUDY>
<EQUAL? .NUM 1 2>>
<TELL
CR "Holmes has seated his visitor and is exchanging pleasantries with
him. As you walk in Holmes looks up and says, \"Ah, here you
are Watson. Now we can get down to business.\" He turns to the gentleman
seated in the armchair and says, \"">)
(T
<TELL
CR "Holmes appears and says, \"Come with me, Watson. We have an
important visitor.\" He takes you by the arm and ushers you back to his
study. Once inside, he gestures to the guest seated in the armchair
and says, \"">
<MOVE ,CH-PLAYER ,RM-HOLMES-STUDY>
<SETG GL-PLACE-PRV ,GL-PLACE-CUR>
<SETG GL-PLACE-CUR ,RM-HOLMES-STUDY>)>
<TELL
"I presume, sir, that you have come about the Jewels.\"" CR CR
"The visitor half rises from his chair in protest and
sputters, \"But...but, how...?\"" CR CR
"Holmes calms him with a glance. \"Come, sir. What else
could it be? The Tower is suddenly closed, and within hours I receive a
call from the highest official of Her Majesty's government. A simple
deduction. Now then, tell me about the theft.\"" CR CR
"The visitor settles back into his chair and says, \"We know very
little. Only that the Crown Jewels were stolen
from the Tower sometime Thursday night. The theft was discovered
Friday morning, and we immediately closed and searched the Tower. All we
found was this verse which was left behind in the empty jewel case.\"" CR CR
"The visitor removes a folded piece of paper from his pocket
and gives it to Holmes, who glances at it and passes it on to you." CR>
<RT-THIS-IS-IT ,TH-WESTMINSTER-CLUE>
<RT-THIS-IS-IT ,CH-PRIME-MINISTER>)
(T
<RT-ALARM-SET-REL ,RT-I-HUDSON <RT-PARM-SET 0 1 0>>
<SETG RM-HOLMES-STUDY-AUX1 <+ .NUM 1>>
<COND (<EQUAL? .NUM 0>
<TELL
CR "You hear Holmes call you to come back into his study..." CR>)>)>
<RTRUE>>
<ROUTINE RT-I-PM-LEAVE ()
<MC-UNMAKE ,LG-HOLMES-BEDROOM-DOOR ,FL-LOCKED>
<MC-MAKE ,LG-HOLMES-BEDROOM-DOOR ,FL-OPENED>
<REMOVE ,CH-PRIME-MINISTER>
<MOVE ,CH-HOLMES ,RM-221B-BAKER-ST>
<COND (<EQUAL? <LOC ,CH-PLAYER> ,RM-HOLMES-STUDY>
<TELL
CR "The visitor looks at his pocket watch and stands up. \"Thank
you, gentlemen. I must go now. Remember, this calamity can only be hidden
from the public until Monday morning at nine o'clock. If the Regalia is
not at Buckingham Palace in time for the Coronation Day festivities, then all
is lost.\"" CR CR
"The gentleman leaves, and Holmes unlocks the door to the
bedroom, goes in, and reappears moments later wearing his Inverness cape
and deerstalker hat." CR CR
"\"Come when you're ready, Watson. I'll wait for you outside.\"" CR>)
(<MC-HERE? ,RM-221B-BAKER-ST>
<TELL
CR "You see Holmes and the visitor emerge from the house. They confer
briefly, shake hands, and then the Minister walks off into the fog." CR>)
(T
<TELL CR
"Holmes and the visitor brush past you as they leave the house. Holmes
says to you, \"Come when you're ready, Watson. I'll wait for you
outside.\"" CR>)>
<RTRUE>>
<ROUTINE RT-I-PM-QUITS ()
<CRLF>
<COND (<MC-HERE? ,RM-221B-BAKER-ST>
<TELL
"You see " THE ,LG-BAKER-ST-DOOR " open, and a dejected-looking man comes
out. He slowly walks away into the fog." CR CR>)
(<MC-HERE? ,RM-HOLMES-STUDY ,RM-VESTIBULE>
<TELL
"From downstairs you hear the sound of a door closing. You go down and open "
THE ,LG-BAKER-ST-DOOR " in time to see a dejected-looking man disappearing
into the fog." CR CR>)
(<MC-HERE? ,RM-ENTRY-HALL>
<TELL
"Suddenly " THE ,LG-PARLOUR-DOOR " opens and a dejected-looking man appears.
\"Thank you for trying, Mrs Hudson, but without Sherlock Holmes, there is no
hope.\" He opens " THE ,LG-BAKER-ST-DOOR " and disappears into the fog." CR CR>)>
<TELL
"Moments later you see newsboys running through the streets shouting,
\"Crown Jewels stolen! Prime Minister resigns in disgrace!\"" CR CR>
<RT-QSR>>
; "Routines also modified to support the Nelson puzzle:"
; " RT-AC-TH-TELESCOPE"
; " RT-AC-TH-RUBY"
; " PRE-SHOW"
; " SHOW Syntax"
; " KILL Syntax"
; " RT-PERFORM: Check for winner FL-ALIVE instead of FL-PERSON."
; " RT-FOOLISH-TO-TALK: Same as RT-PERFORM."
; "Bits that describe the pigeon's state of attention"
<CONSTANT K-PIGEON-SHOWN-RUBY 1>
<CONSTANT K-PIGEON-GET-RUBY 2>
<CONSTANT K-PIGEON-TIRED 4>
; "Pigeon's state of attention is stored in the AUX1 property."
; "Number of times the pigeon has circled is stored in the AUX2 property."
; "Object that pigeon brings back is stored in the AUX3 property."
<ROUTINE RT-GET-PIGEON ("AUX" OBJ WHO)
<COND (<BAND ,CH-TRAINED-PIGEON-AUX1 ,K-PIGEON-TIRED>
<TELL "\"He's too young to fly too often.">
<SET OBJ ,CH-TRAINED-PIGEON-AUX3>
<COND (<IN? .OBJ ,CH-SHERMAN>
<TELL
" He did come back with " A .OBJ ", however,\" he says, giving it to you." CR>
<MOVE .OBJ ,CH-PLAYER>
<RT-THIS-IS-IT .OBJ>
<MC-MAKE .OBJ ,FL-SEEN>
<MC-MAKE .OBJ ,FL-TOUCHED>
<MC-UNMAKE .OBJ ,FL-NODESC>
<COND (<MC-T? <GETP .OBJ ,P?VALUE>>
<SET WHO <RT-WHO-SAYS?>>
<COND (<EQUAL? .WHO ,CH-HOLMES>
<TELL CR ,K-BRAVO-MSG CR>)>
<RT-UPDATE-SCORE <GETP .OBJ ,P?VALUE>>
<PUTP .OBJ ,P?VALUE 0>)>)
(T
<TELL " Come back next week.\"" CR>)>)
(<IN? ,CH-TRAINED-PIGEON ,CH-SHERMAN>
<TELL "Sherman hands you the bird. \"Take good care of
him, now. I've grown fond of him.\"" CR>
<MOVE ,CH-TRAINED-PIGEON ,CH-PLAYER>
<MC-MAKE ,CH-TRAINED-PIGEON ,FL-SEEN>
<MC-MAKE ,CH-TRAINED-PIGEON ,FL-TOUCHED>
<MC-UNMAKE ,CH-TRAINED-PIGEON ,FL-NODESC>
<RT-UPDATE-SCORE <GETP ,CH-TRAINED-PIGEON ,P?VALUE>>
<PUTP ,CH-TRAINED-PIGEON ,P?VALUE 0>)
(T
<TELL "\"I've already given him to you.\"" CR>)>>
<ROUTINE RT-PIGEON-INTEREST (ATT-BIT)
<COND (<AND <EQUAL? .ATT-BIT ,K-PIGEON-GET-RUBY>
<NOT <BAND ,CH-TRAINED-PIGEON-AUX1 ,K-PIGEON-SHOWN-RUBY>>>
<TELL
CTHE ,CH-TRAINED-PIGEON " doesn't seem to see the object to which you are
referring." CR>
<RTRUE>)>
<SETG CH-TRAINED-PIGEON-AUX1 <BOR ,CH-TRAINED-PIGEON-AUX1 .ATT-BIT>>
<RT-AC-CH-TRAINED-PIGEON ,K-M-DESCFCN>
<RT-ALARM-CLR ,RT-I-PIGEON-LOSE-INTEREST>
<RT-ALARM-SET-REL ,RT-I-PIGEON-LOSE-INTEREST <RT-PARM-SET 0 3 0>>
<COND (<AND <BAND ,CH-TRAINED-PIGEON-AUX1 ,K-PIGEON-SHOWN-RUBY>
<BAND ,CH-TRAINED-PIGEON-AUX1 ,K-PIGEON-GET-RUBY>>
<COND (<RT-ALARM-SET? ,RT-I-PIGEON-IMPATIENT>
<RT-ALARM-CLR ,RT-I-PIGEON-IMPATIENT>)>
<RT-ALARM-SET-REL ,RT-I-PIGEON-IMPATIENT <RT-PARM-SET 0 1 0>>)>>
<ROUTINE RT-KILL-PIGEON ()
<MC-UNMAKE ,CH-TRAINED-PIGEON ,FL-ALIVE>
<SETG CH-TRAINED-PIGEON-AUX2 0>
<COND (<NOT <0? <LOC ,CH-TRAINED-PIGEON>>>
<MOVE ,TH-DEAD-PIGEON <LOC ,CH-TRAINED-PIGEON>>
<REMOVE ,CH-TRAINED-PIGEON>)>
<RT-ALARM-CLR ,RT-I-PIGEON-LOSE-INTEREST>
<RT-ALARM-CLR ,RT-I-PIGEON-IMPATIENT>
<COND (<MC-HERE? ,RM-SHERMANS-HOUSE>
<RT-SHERMAN-RAGE <>>)
(T
<RT-ALARM-SET-REL ,RT-I-SHERMANS-REVENGE <RT-PARM-SET 0 30 0>>)>>
<ROUTINE RT-PIGEON-OBJ (P-OBJ "AUX" WHO)
<MOVE .P-OBJ ,CH-PLAYER>
<RT-THIS-IS-IT .P-OBJ>
<MC-MAKE .P-OBJ ,FL-SEEN>
<MC-MAKE .P-OBJ ,FL-TOUCHED>
<MC-UNMAKE .P-OBJ ,FL-NODESC>
<COND (<MC-T? <GETP .P-OBJ ,P?VALUE>>
<SET WHO <RT-WHO-SAYS?>>
<COND (<EQUAL? .WHO ,CH-HOLMES>
<TELL CR ,K-BRAVO-MSG CR>)>
<RT-UPDATE-SCORE <GETP .P-OBJ ,P?VALUE>>
<PUTP .P-OBJ ,P?VALUE 0>)>
<RTRUE>>
<ROUTINE RT-SHERMAN-RAGE (WALK)
<CRLF>
<COND (<MC-T? .WALK>
<TELL "As you walk into the shop, ">)>
<TELL
"Sherman sees you and flies into a rage. \"Animal hater!\" he cries. \"You
killed my bird! How could you do such a thing?\"" CR CR
"With a strength you didn't know he possessed, Sherman wrestles you into
one of the larger cages that line the walls of his shop." CR CR
"Over the next few days, no customers buy you. But then on Monday morning
Inspector Lestrade comes in looking for a pet for his wife. \"Did you
you hear about the Crown Jewels?\" he asks. \"I'm looking into it personally
and I don't mind telling you I've a few theories of my own. By the
way, isn't it a little cramped in there?\"" CR CR
"Lestrade leaves and you decide that with him handling the case, you'd
just as soon stay in the cage."
CR CR>
<RT-QSR>>
<ROUTINE RT-I-PIGEON-LOSE-INTEREST ()
<SETG CH-TRAINED-PIGEON-AUX1 0>
<COND (<RT-VISIBLE? ,CH-TRAINED-PIGEON>
<TELL CR CTHE ,CH-TRAINED-PIGEON " seems to lose interest." CR>)>>
<ROUTINE RT-I-PIGEON-IMPATIENT ()
<COND (<RT-VISIBLE? ,CH-TRAINED-PIGEON>
<TELL
CR CTHE ,CH-TRAINED-PIGEON " looks at you as if waiting for you to let him
go." CR>)>>
<ROUTINE RT-I-PIGEON-CIRCLE ("AUX" CIRCLE L)
<SET CIRCLE ,CH-TRAINED-PIGEON-AUX2>
<SET L <LOC ,CH-TRAINED-PIGEON>>
<COND (<OR <AND <EQUAL? ,GL-WINNER ,CH-PLAYER>
<MC-VERB? WALK>>
<EQUAL? .CIRCLE 3>>
<MOVE ,CH-TRAINED-PIGEON ,CH-SHERMAN>
<SETG CH-TRAINED-PIGEON-AUX1 ,K-PIGEON-TIRED>
<SETG CH-TRAINED-PIGEON-AUX2 0>
<MOVE ,CH-TRAINED-PIGEON-AUX3 ,CH-SHERMAN>
<COND (<AND <EQUAL? .L ,GL-PLACE-CUR>
<OR <NOT <EQUAL? ,GL-WINNER ,CH-PLAYER>>
<NOT <MC-VERB? WALK>>>>
<TELL CR CTHE ,CH-TRAINED-PIGEON " circles above you
for the last time, and flies out of sight." CR>)>)
(<EQUAL? .CIRCLE 1 2>
<RT-ALARM-SET-REL ,RT-I-PIGEON-CIRCLE <RT-PARM-SET 0 1 0>>
<SETG CH-TRAINED-PIGEON-AUX2 <+ .CIRCLE 1>>
<COND (<EQUAL? .L ,GL-PLACE-CUR>
<TELL CR CTHE ,CH-TRAINED-PIGEON " circles above you." CR>)>)>>
<ROUTINE RT-I-SHERMANS-REVENGE ()
<COND (<MC-IS? ,GL-PLACE-CUR ,FL-INDOORS>
<RT-ALARM-SET-REL ,RT-I-SHERMANS-REVENGE <RT-PARM-SET 0 1 0>>
<RFALSE>)
(T
<TELL CR "Suddenly, you see Sherman the animal trainer running
towards you. He is accompanied by a constable.
Sherman is beside himself with rage. \"There they are,
constable. They killed my bird. Arrest them.\" The constable
takes both you and Sherlock into custody, and although everything is
eventually straightened out, it takes far too long for you to have enough
time left to solve the mystery." CR CR>
<RT-QSR>)>>
<ROUTINE RT-IMPOLITE-MSG (STR1 STR2)
<TELL "It isn't polite to " .STR1 " without " .STR2 "." CR>
<RTRUE>>
<CONSTANT K-BELL-AWAY 0> ; "Big Ben is swung away from the player."
<CONSTANT K-BELL-TOWARDS 1> ; "Big Ben is swung towards the player."
<GLOBAL GL-WAIT-BELL:FLAG <>> ;"Don't ring bell until done waiting."
; "Number of times to ring Big Ben is stored in the AUX1 property of TH-BELL."
; "Bell position is stored in the AUX2 property of TH-BELL."
; "Grabs required to get the sapphire is stored in the AUX1 property of"
; "TH-SAPPHIRE."
<ROUTINE RT-I-BIGBEN ("AUX" HRS MIN SEC YRS MON DAY (RET <>))
<COND (<MC-IS? ,CH-PLAYER ,FL-ASLEEP>
<RFALSE>)>
<COND (<AND <MC-T? ,GL-WAIT-BELL>
<MC-VERB? WAIT-FOR WAIT>>
<SET RET T>)
(<AND <MC-VERB? WAIT-FOR WAIT>
<NOT <MC-HERE? RM-CLOCK-TOWER>>>
<RT-CLOCK-INC-SET 1 0 0>
<RT-CLOCK-INC>
<COND (<EQUAL? <RT-CLOCK-CMP <GETB ,GL-TEMP-TIME ,K-HRS>
<GETB ,GL-TEMP-TIME ,K-MIN>
<GETB ,GL-TEMP-TIME ,K-SEC>
<GETB ,GL-TEMP-TIME ,K-DAY>> 1>
<COND (<MC-F? ,GL-WAIT-BELL>
<TELL CR "While you wait, you hear Big Ben strike each hour." CR>)>
<SET RET T>)>
<RT-CLOCK-INC-SET -1 0 0>
<RT-CLOCK-INC>
<SETG GL-WAIT-BELL T>)
(T
<SETG GL-WAIT-BELL <>>)>
<RT-ALARM-SET-REL ,RT-I-BIGBEN <RT-PARM-SET 1 0 0>>
<COND (<MC-T? .RET>
<RFALSE>)>
<SET HRS <GETB ,GL-TIME ,K-HRS>>
<COND (<NOT <EQUAL? ,GL-PLACE-CUR ,RM-CLOCK-TOWER>>
<TELL CR "In the distance, you hear Big Ben strike the hour." CR>
<IFSOUND <COND (<F? ,SOUND-QUEUED?>
<COND (<G? .HRS 12>
<SETG TH-BELL-AUX1 <- .HRS 12>>)
(T
<SETG TH-BELL-AUX1 .HRS>)>
<SOUNDS ,S-FARBEN ,S-START 3 ,TH-BELL-AUX1>)>>)
(T
<COND (<G? .HRS 12>
<SETG TH-BELL-AUX1 <- .HRS 12>>)
(T
<SETG TH-BELL-AUX1 .HRS>)>
<RT-I-SWING-BELL>)>>
<GLOBAL HEARD-SWING? <>>
<ROUTINE RT-I-SWING-BELL ("AUX" OBJ NUM POS WHO)
<SET NUM ,TH-BELL-AUX1>
<SET POS ,TH-BELL-AUX2>
<COND (<NOT <EQUAL? ,GL-PLACE-CUR ,RM-CLOCK-TOWER>>
<RT-RELIEF>
<SETG HEARD-SWING? <>>
<SETG TH-BELL-AUX1 0>
<SETG TH-BELL-AUX2 ,K-BELL-AWAY>
<RT-ZERO-SECONDS>
<RFALSE>)>
<COND (<G? .NUM 0>
<RT-CLOCK-INC-SET 0 0 2>
<RT-ALARM-SET-REL ,RT-I-SWING-BELL <RT-PARM-SET 0 0 2>>)>
<IFSOUND <COND (<F? ,HEARD-SWING?>
<SOUNDS ,S-CLOCK ,S-INIT>)>>
<TELL CR "The bell swings ">
<COND (<EQUAL? .POS ,K-BELL-AWAY>
<SETG TH-BELL-AUX2 ,K-BELL-TOWARDS>
<TELL "towards you, ">
<COND (<MC-IS? ,TH-COTTON-BALLS ,FL-WORN>
<TELL "ringing loudly, but the cotton protects your
ears">
<SET WHO <RT-WHO-SAYS?>>
<COND (<AND .WHO <F? ,HEARD-SWING?>>
<TELL ". " CTHE .WHO
" claps his hands to his ears in an attempt to protect them">
<COND (<FIRST? .WHO>
<RT-MOVE-ALL .WHO ,RM-CLOCK-TOWER>
<TELL
", dropping everything he was carrying in the process">)>)>
<TELL ". The clapper swings up within reach." CR>
<IFSOUND <SOUNDS ,S-CLOCK ,S-START 6>>
<SETG HEARD-SWING? T>)
(T
<TELL "ringing unbearably loud. BONG!">
<IFSOUND <SOUNDS ,S-CLOCK>>
<COND (<AND <F? ,HEARD-SWING?>
<MC-ISNOT? ,TH-HANDS ,FL-LOCKED>>
<SETG HEARD-SWING? T>
<SET WHO <RT-WHO-SAYS?>>
<MC-MAKE ,TH-HANDS ,FL-LOCKED>
<RT-MOVE-ALL-BUT-WORN ,CH-PLAYER ,RM-CLOCK-TOWER>
<TELL " You ">
<COND (.WHO
<RT-MOVE-ALL .WHO ,RM-CLOCK-TOWER>
<TELL "and " D .WHO " ">)>
<TELL
"clap your hands to your ears in an attempt to protect them, dropping
everything you are carrying in the process.">)>
<CRLF>)>
<SETG TH-BELL-AUX1 <- .NUM 1>>)
(T
<SETG TH-BELL-AUX2 ,K-BELL-AWAY>
<TELL "away from you">
<COND (<ZERO? .NUM>
<TELL ", finishing the ringing of the hour." CR>
<RT-RELIEF>
<RT-ZERO-SECONDS>)
(T
<TELL "." CR>)>)>>
<ROUTINE RT-RELIEF ()
<SETG HEARD-SWING? <>>
<COND (<MC-IS? ,TH-HANDS ,FL-LOCKED>
<MC-UNMAKE ,TH-HANDS ,FL-LOCKED>
<TELL "You breath a sigh of relief as you take your
hands away from your ears." CR>)>>
<ROUTINE RT-ZERO-SECONDS ("AUX" SEC)
<SET SEC <GETB ,GL-TIME ,K-SEC>>
<COND (<NOT <ZERO? .SEC>>
<RT-CLOCK-INC-SET 0 0 <- 60 .SEC>>
<RT-CLOCK-INC>
<RT-COPY-TIME ,GL-TIME ,GL-TEMP-TIME>)>>
<ROUTINE RT-I-EXHALE ()
<COND (<MC-IS? ,TH-BREATH ,FL-LOCKED>
<RT-ALARM-SET-REL ,RT-I-INHALE <RT-PARM-SET 0 1 0>>
<TELL CR "You can't hold your breath much longer..." CR>)>>
<ROUTINE RT-I-INHALE ()
<COND (<MC-IS? ,TH-BREATH ,FL-LOCKED>
<TELL CR "Your lungs scream for air. You take a deep breath." CR>
<MC-UNMAKE ,TH-BREATH ,FL-LOCKED>
<SETG RUN-SMELL-ETHERIUM? T>
<RTRUE>)>>
<ROUTINE RT-I-TAKE-WATSONS-STUFF ()
<COND (<MC-ISNOT? ,CH-AKBAR ,FL-ASLEEP>
<TELL CR "Akbar">
<COND (<MC-IS? ,TH-WATSONS-HAT ,FL-WORN>
<TELL " apologizes to you,">)>
<TELL
" removes everything from your hands, and then hits you over the head. The
last thing you see before losing consciousness is the look of defeat on
Holmes's face." CR CR
"You awake sometime later to find yourself bound hand and foot. Moriarty is
standing over you with a newspaper in his hand." CR CR
,K-FOUGHT-WELL-MSG CR CR
"Moriarty takes the Crown Jewels and departs, leaving you to ponder your
defeat and the inevitable demise of the British Empire." CR CR>
<RT-QSR>)>
<RFALSE>>
<ROUTINE RT-I-OUT-OF-TIME ()
<CRLF>
<COND (<MC-IS? ,GL-PLACE-CUR ,FL-INDOORS>
<TELL "Outside you hear">)
(T
<TELL "You see">)>
<TELL " the paper boy run through the streets shouting out,
\"Crown Jewels stolen... the end is near.\"" CR CR>
<COND (<EQUAL? ,GL-PLACE-CUR ,RM-LAIR>
<TELL D ,CH-MORIARTY>
<COND (<MC-IS? ,CH-MORIARTY ,FL-ASLEEP>
<MC-UNMAKE ,CH-MORIARTY ,FL-ASLEEP>
<TELL " awakens from his stupor and">)>
<TELL " says, " ,K-FOUGHT-WELL-MSG CR CR>)>
<RT-QSR>>
<ROUTINE RT-ETHERIUM-EFFECT (ASLEEP? "OPTIONAL" (OBJ <>) (TOP T) "AUX" (CNT 0))
<COND (<MC-F? .OBJ>
<SET OBJ ,GL-PLACE-CUR>)>
<REPEAT ()
<COND (<MC-F? .OBJ>
<RETURN>)
(<AND <MC-IS? .OBJ ,FL-ALIVE>
<OR <NOT <EQUAL? .OBJ ,CH-PLAYER>>
<MC-ISNOT? ,TH-BREATH ,FL-LOCKED>>>
<COND (<MC-T? .ASLEEP?>
<COND (<OR <NOT <EQUAL? .OBJ ,CH-HOLMES>>
<MC-ISNOT? ,TH-BREATH ,FL-LOCKED>>
<MC-MAKE .OBJ ,FL-ASLEEP>
<INC .CNT>
<COND (<EQUAL? ,GL-PUPPY .OBJ>
<SETG GL-FORMER-PUPPY .OBJ>
<SETG GL-PUPPY <>>)
;(<EQUAL? .OBJ ,CH-TRAINED-PIGEON>
<TELL
" Unfortunately, the gas kills the poor pigeon.">
<RT-KILL-PIGEON>)>)>)
(T
<MC-UNMAKE .OBJ ,FL-ASLEEP>
<INC .CNT>)>)
(<FIRST? .OBJ>
<SET CNT <+ .CNT
<RT-ETHERIUM-EFFECT .ASLEEP? <FIRST? .OBJ> <>>>>)>
<COND (<MC-F? .TOP>
<SET OBJ <NEXT? .OBJ>>)
(T
<RETURN>)>>
<RETURN .CNT>>
;<GLOBAL GL-PEOPLE:TABLE <ITABLE 25 0>> ; "People in the room"
<ROUTINE RT-I-WAKE-UP ("AUX" OBJ)
<RT-ETHERIUM-EFFECT <> <LOC ,TH-ETHERIUM-GAS>>
<REMOVE ,TH-ETHERIUM-GAS>>
<ROUTINE RT-SMELL-ETHERIUM? ()
<COND
(<MC-HERE? <LOC ,TH-ETHERIUM-GAS>>
<COND (<MC-ISNOT? ,TH-BREATH ,FL-LOCKED>
<REMOVE ,TH-ETHERIUM-GAS>
<TELL CR "The etherium knocks you out." CR CR>
<MC-MAKE ,CH-PLAYER ,FL-ASLEEP>
<COND (<MC-HERE? ,RM-LAIR>
<RT-ALARM-CLR ,RT-I-WAKE-UP>
<RT-DOES-MORIARTY-WIN>)
(T
<COND (<RT-ALARM-SET? ,RT-I-WAKE-UP>
<COPYT ,GL-TIME-PARM ,GL-TIME ,K-A-TWDTH>
<RT-ALARM-CHK <>>
<SETG GL-CLOCK-WAIT T>
<TELL ,K-WAKE-UP-MSG CR>)
(T
<RT-CLOCK-JMP 6 0 0>
<TELL ,K-WAKE-UP-MSG CR>)>
<COND (<AND <MC-T? ,GL-FORMER-PUPPY>
<IN? ,GL-FORMER-PUPPY ,GL-PLACE-CUR>
<F? ,GL-PUPPY>>
<FCLEAR ,GL-FORMER-PUPPY ,FL-ASLEEP>
<SETG GL-PUPPY ,GL-FORMER-PUPPY>
<SETG GL-FORMER-PUPPY <>>)>)>)
(<AND ,GL-PUPPY
<N==? ,GL-PUPPY ,CH-HOLMES>
<RT-ETHERIUM-EFFECT T ,GL-PUPPY>>
<TELL CTHE ,GL-FORMER-PUPPY " passes out." CR>)>
<RTRUE>)>
<RFALSE>>
<ROUTINE RT-FIND-FLAME ("OPTIONAL" (OBJ <>) (TOP T) "AUX" FST)
<COND (<MC-F? .OBJ>
<SET OBJ ,GL-PLACE-CUR>)>
<REPEAT ()
<COND (<MC-F? .OBJ>
<RETURN>)
(<AND <MC-IS? .OBJ ,FL-BURNABLE>
<MC-IS? .OBJ ,FL-LIGHTED>>
<RTRUE>)>
<SET FST <FIRST? .OBJ>>
<COND (<AND <MC-T? .FST>
<RT-FIND-FLAME .FST <>>>
<RTRUE>)>
<COND (<MC-F? .TOP>
<SET OBJ <NEXT? .OBJ>>)
(T
<RETURN>)>>
<RFALSE>>
<ROUTINE RT-DOES-MORIARTY-WIN ()
<COND (<AND <MC-IS? ,CH-MORIARTY ,FL-LOCKED>
<MC-IS? ,CH-AKBAR ,FL-LOCKED>>
<RT-CLOCK-SET 8 30 0 20>
<RT-ALARM-CLR ,RT-I-OUT-OF-TIME>
<RT-ALARM-CHK <>>
<SETG GL-CLOCK-WAIT T>
<RT-ALARM-SET-ABS ,RT-I-OUT-OF-TIME <RT-PARM-SET 9 0 0 20>>
<TELL
"You awaken slowly and stumble to your feet. Moriarty and Akbar have already
recovered, and they are struggling fiercely to free themselves. It seems as
if you were unconscious for quite a while, but it's hard to tell. You
probably don't have a lot of time." CR>
<MC-UNMAKE ,CH-PLAYER ,FL-ASLEEP>
<MC-UNMAKE ,CH-HOLMES ,FL-ASLEEP>
<MC-UNMAKE ,CH-AKBAR ,FL-ASLEEP>
<MC-UNMAKE ,CH-MORIARTY ,FL-ASLEEP>
<RTRUE>)
(T
<TELL
"Unfortunately, Moriarty and Akbar recovered before you did. You find
yourself bound securely to Holmes." CR CR
"Moriarty looks at you and says, " ,K-FOUGHT-WELL-MSG CR CR>
<RT-QSR>)>>
<ROUTINE RT-PROCESS-PASSWORD ()
<COND (<MC-HERE? ,RM-BAR-OF-GOLD>
<TELL CTHE ,CH-DENKEEPER>
<COND (<AND <IN? ,TH-CARNATION ,TH-LAPEL>
<MC-ISNOT? ,CH-AKBAR ,FL-SEEN>
<EQUAL? <RT-CLOCK-CMP 2 0 0 20> -1 0>>
<MC-MAKE ,CH-AKBAR ,FL-SEEN>
<MOVE ,CH-AKBAR ,RM-BAR-OF-GOLD>
<TELL
" disappears into a back room and reappears moments later,
accompanied by a tall, silent man who has dark skin and wears a white
turban." CR CR "The Indian glances at your ">
<COND (<MC-ISNOT? ,TH-WATSONS-HAT ,FL-WORN>
<TELL "uncovered ">)>
<TELL "head and then intones, \"I am Akbar">
<COND (<MC-IS? ,TH-WATSONS-HAT ,FL-WORN>
<TELL ", honourable sir">)>
<TELL ". What is it that you wish?\"" CR>)
(T
<TELL
" says, \"Not now, mate. Can't you see I'm busy?\"" CR>)>)
(<MC-HERE? ,RM-BYWARD-TOWER>
<TELL
CTHE ,CH-TOWER-GUARD " pauses and looks at you strangely. Then he
says, \"An interesting guess. But wrong.\"" CR>)
(T
<TELL "Thatsa no swordfish. Thatsa duck." CR>)>
<RTRUE>>
<ROUTINE V-SWORDFISH ()
<DEBUGGING? <RT-DEBUG-VERB "V-SWORDFISH">>
<RT-PROCESS-PASSWORD>>
<ROUTINE RT-ROPE-MSG ()
<TELL "As">
<RT-YOU-MSG "reach" "reaches">
<TELL "for " THE ,TH-ROPE ", Akbar">
<COND (<MC-IS? ,TH-WATSONS-HAT ,FL-WORN>
<TELL " says, \"Pardon me, honourable sir,\" and">)>
<TELL
" hits you over the head." CR CR
"When you regain consciousness, you find that your hands and feet are bound.
Outside you hear the paper boy run through the streets shouting out
\"Crown Jewels stolen! Prime Minister resigns in disgrace!\"" CR>
<RT-QSR>>
<ROUTINE RT-INSCRIPTION-APPEARS-MSG ()
<TELL "After a few moments, the tomb's inscription comes through
onto the piece of paper." CR>>
<ROUTINE RT-PROCESS-TOMB (TOMB-NUMBER)
<COND (<MC-VERB? READ>
<RT-READ-INSCRIPTION .TOMB-NUMBER>)
(<MC-VERB? TRANSLATE>
<TELL
"Unfortunately, what little Latin you remember from your school days is
limited to medical matters." CR>)
(<MC-VERB? RUB-WITH>
<TELL
"Rubbing the paper with the crayon would probably yield better results." CR>)
(<MC-VERB? LOOK-INSIDE SEARCH>
<RT-CYOU-MSG>
<RT-WOULD-HAVE-TO-MSG "open" ,TH-IT>
<TELL " first." CR>
<RTRUE>)
(<MC-VERB? OPEN>
<TELL "Getting just a little bit morbid, aren't we?" CR>)
(<MC-VERB? TOUCH>
<COND (<EQUAL? .TOMB-NUMBER 1 2 3>
<TELL "It feels a little sticky." CR>)
(T
<RT-CYOU-MSG "do" "does">
<TELL
"not feel anything " <RT-PICK-NEXT ,GL-BORING-TXT> "." CR>)>)
(<MC-VERB? SHOOT>
<RT-SHOOT-DEAD-MSG>)>>
<ROUTINE RT-READ-INSCRIPTION (NUM)
<TELL "The inscription">
<COND (<EQUAL? 2 .NUM>
<TELL " reads, \"ISAACVS NEWTON Eques Auratus">)
(<EQUAL? 1 .NUM>
<TELL " reads, \"REGNO CONSORTES & VRNA HIC OBDOR
MIMVS ELIZABETHA ET MARIA SORORES IN SPE RESVRRECTIONIS">)
(<EQUAL? 7 .NUM>
<TELL " is a long one, but in the middle of it you see the name
\"GALFRIDVS CHAVCER">)
(<EQUAL? 9 .NUM>
<TELL "s are written in Latin, but you can make out the names
\"Edward V\" and \"Richard, Duke of York">)
(T
<TELL " is written in Latin, but you can make out the name \"">
<COND (<EQUAL? 3 .NUM>
<TELL "Henry V">)
(<EQUAL? 4 .NUM>
<TELL "Edward the Confessor">)
(<EQUAL? 5 .NUM>
<TELL "Alexander Pope">)
(<EQUAL? 6 .NUM>
<TELL "Charles Dickens">)
(<EQUAL? 8 .NUM>
<TELL "Anne of Cleves">)
(<EQUAL? 10 .NUM>
<TELL "Mary, Queen of Scots">)
(<EQUAL? 11 .NUM>
<TELL "Henry VII">)
(<EQUAL? 12 .NUM>
<TELL "Pitt">)
(<EQUAL? 13 .NUM>
<TELL "Francis Vere">)>)>
<TELL ".\"" CR>
<RTRUE>>
<ROUTINE RT-READ-PAPER (PAPER-NAME WRITING PHEAT)
<COND (<MC-F? .WRITING>
<TELL "The paper appears to be blank." CR>
<RTRUE>)
(T
<COND (<MC-F? <GETP .PAPER-NAME ,P?FLIPPED>>
<RT-READ-INSCRIPTION .WRITING>
<RTRUE>)
(T
<COND (<ZERO? .PHEAT>
<TELL "This side appears to be blank." CR>)
(<EQUAL? 1 .PHEAT>
<TELL "You see a faint discolouration." CR>)
(<EQUAL? 2 .PHEAT>
<COND (<EQUAL? 1 .WRITING>
<TELL
INDENT "Hickory Dickory Dock." CR
INDENT "Your enemy is the clock." CR
INDENT "When it strikes nine," CR
INDENT "The victory's mine." CR
INDENT "Hickory Dickory Dock." CR CR
INDENT ,K-ASTERISK-MSG CR CR
INDENT "Here comes a candle to light you to bed." CR
INDENT "Here comes a chopper" WRAP "to chop off your head." CR>
<MC-MAKE .PAPER-NAME ,FL-LOCKED>
<SETG TH-PACKET-OF-PAPER-AUX1
<BOR ,TH-PACKET-OF-PAPER-AUX1 1>>)
(<EQUAL? 2 .WRITING>
<TELL
INDENT "London Bridge is falling down." CR
INDENT "All that's under it will drown." CR
INDENT "With it falls Victoria's reign." CR
INDENT "Britannia ne'er to rule again." CR CR
INDENT ,K-ASTERISK-MSG CR CR
INDENT "When a number you require," CR
INDENT "And you're banking all thereon." CR
INDENT "Subtract the conquest from the fire," CR
INDENT "Half a league, half a league." WRAP "Half a league on." CR>