-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbystander.zil
2961 lines (2742 loc) · 86.2 KB
/
bystander.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
"BYSTANDER for
BORDER ZONE
(c) Copyright 1987 Infocom, Inc. All Rights Reserved."
<ROOM PLATFORM-1
(LOC ROOMS)
(DESC "Platform, North End")
(SOUTH PER PLATFORM-MOVE-2)
(NORTH SORRY
"The platform ends here at a tall fence, marking the actual border between
Frobnia and Litzenburg.")
(WEST SORRY
"A guard prevents you from boarding the train. \"Nye mneshna pletska bli!\"")
(GLOBAL PLAT-TRAIN PLAT-GUARDS PLAT-PEOPLE PLAT-FENCE)
(FLAGS PLATFORMBIT)
(ACTION PLATFORM-ROOM-F)>
<OBJECT PLAT-FENCE
(LOC LOCAL-GLOBALS)
(DESC "fence")
(SYNONYM FENCE)
(ADJECTIVE BORDER)
(ACTION PLAT-FENCE-F)>
<ROUTINE PLAT-FENCE-F ()
<COND (<VERB? EXAMINE>
<TELL
"The fence is perhaps twenty feet tall, and virtually unscalable. It's
a good thing you have a ticket." CR>)>>
<ROOM PLATFORM-2
(LOC ROOMS)
(DESC "Train Platform")
(NORTH PER PLATFORM-MOVE-1)
(SOUTH PER PLATFORM-MOVE-3)
(WEST SORRY
"A guard prevents you from boarding the train. \"Nye mneshna pletska bli!\"")
(GLOBAL PLAT-TRAIN PLAT-GUARDS PLAT-PEOPLE)
(FLAGS PLATFORMBIT)
(ACTION PLATFORM-ROOM-F)>
<ROOM PLATFORM-3
(LOC ROOMS)
(DESC "Train Platform")
(NORTH PER PLATFORM-MOVE-2)
(SOUTH PER PLATFORM-MOVE-4)
(WEST SORRY
"A guard prevents you from boarding the train. \"Nye mneshna pletska bli!\"")
(GLOBAL PLAT-TRAIN PLAT-GUARDS PLAT-PEOPLE)
(FLAGS PLATFORMBIT)
(ACTION PLATFORM-ROOM-F)>
<ROOM PLATFORM-4
(LOC ROOMS)
(DESC "Platform, South End")
(NORTH PER PLATFORM-MOVE-3)
(SOUTH SORRY
"The platform ends here, and a guard prevents you from going any farther.")
(WEST SORRY
"A guard prevents you from boarding the train. \"Nye mneshna pletska bli!\"")
(GLOBAL PLAT-TRAIN PLAT-GUARDS PLAT-PEOPLE)
(FLAGS PLATFORMBIT)
(ACTION PLATFORM-ROOM-F)>
<ROUTINE PLATFORM-MOVE-1 ()
<PLATFORM-MOVE ,PLATFORM-1>>
<ROUTINE PLATFORM-MOVE-2 ()
<PLATFORM-MOVE ,PLATFORM-2>>
<ROUTINE PLATFORM-MOVE-3 ()
<PLATFORM-MOVE ,PLATFORM-3>>
<ROUTINE PLATFORM-MOVE-4 ()
<PLATFORM-MOVE ,PLATFORM-4>>
<GLOBAL FOLLOW-WARNING <>>
<GLOBAL FOLLOW-SURE <>>
<ROUTINE PLATFORM-MOVE (RM)
<TELL
"You walk slowly through the crowd">
<COND (<NOT <IN? ,CONTACT ,HERE>>
<TELL ", eyes open but totally in the dark
regarding the nature of your contact">)>
<TELL ".">
<COND (<AND <G? ,SUSPICION 0>
<NOT ,FOLLOW-WARNING>>
<SETG FOLLOW-WARNING T>
<TELL " It's probably nothing, but you could swear
that a man you see behind you was also behind you before you started
walking.">)
(<AND ,FOLLOW-WARNING <NOT ,FOLLOW-SURE>>
<COND (<PROB 40>
<SETG FOLLOW-SURE T>
<TELL
" There he is again, ducking behind a group of tourists. It's all but
certain you're being followed!">)
(T
<TELL
" You nonchalantly look around, and are relieved that the man you
saw earlier is no longer around.">)>)>
<COND (<EQUAL? .RM ,PLATFORM-1>
<TELL CR CR
"You've come to the northern end of the platform now, and you can see in the
distance the darkness that is Litzenburg.">)
(<EQUAL? .RM ,PLATFORM-4>
<TELL CR CR
"You've arrived at the platform's southern end, and can look back into
Frobnia, sighting its formidible border defenses: guard towers, searchlights,
patrols, guard dogs - God knows what else. It's a whole lot better to have a
ticket, and you smile, realizing that it's not easy this way either.">)>
<CRLF>
<SETG DONT-DESCRIBE-ROOM T>
.RM>
<ROUTINE PLATFORM-ROOM-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"The platform itself is
the same size as the trains which cross the border here - four
train-lengths - a hundred yards or so. The train you arrived on is
standing here, each entrance door guarded so as to prevent passengers
from reboarding until the train is ready to leave. Why? Don't ask." CR>
<TELL CR
"There are people everywhere, milling back and forth - men, women, even
a few children. And then there are the guards, the ones you can see, and,
more troublesome, the ones you can't." CR CR>
<COND (<EQUAL? ,HERE ,PLATFORM-1>
<TELL
"Right now, you're standing at the northern end of the platform. Looking
ahead, you can see the darkness that is Litzenburg at night. In just a few
minutes, you hope to be there ... after making your contact." CR>)
(<EQUAL? ,HERE ,PLATFORM-2>
<TELL
"You're now alongside the second car." CR>)
(<EQUAL? ,HERE ,PLATFORM-3>
<TELL
"You're now alongside the third car." CR>)
(T
<TELL
"You're at the southern end of the platform. Looking back into Frobnia,
you can start to make out the border defenses of Frobnia. Incredible.
Guard towers. Searchlights. Patrols. Guard dogs. God knows what else.
Better to have a ticket. You smile, thinking that even then it's not all that
easy!" CR>)>)>>
<OBJECT PLAT-GUARDS
(LOC LOCAL-GLOBALS)
(DESC "guard")
(SYNONYM GUARD GUARDS)
(FLAGS PERSON)
(ACTION PLAT-GUARDS-F)>
<ROUTINE PLAT-GUARDS-F ()
<COND (<VERB? EXAMINE>
<TELL
"There guards here are many and close between, to twist a phrase. They
are all in uniform - well, you think so, in any case. Each is constantly
looking about for whatever happens to be illegal on this particular day." CR>)
(<HURT? ,PLAT-GUARDS>
<TELL
"To what end? The jails are not known for their comfort or amenities." CR>)>>
<OBJECT PLAT-PEOPLE
(LOC LOCAL-GLOBALS)
(DESC "crowd of people")
(SYNONYM PEOPLE MEN WOMEN CHILDREN CROWD THRONG)
(ACTION PLAT-PEOPLE-F)>
<ROUTINE PLAT-PEOPLE-F ()
<COND (<VERB? EXAMINE>
<TELL
"There are quite a large number of people here on the platform - maybe a
few hundred or more - men, women, children - and no idea of who your
contact is to be." CR>)
(<VERB? SEARCH>
<TELL
"You stare at the people in the crowd, but it's no use. You have no idea
who the contact might be." CR>)>>
<OBJECT GLOBAL-CONTACT
(LOC GLOBAL-OBJECTS)
(DESC "contact")
(SYNONYM CONTACT)
(ACTION GLOBAL-CONTACT-F)>
<ROUTINE GLOBAL-CONTACT-F ()
<COND (<NOT <EQUAL? ,SCENARIO 1 3>>
<TELL
"You must be thinking of another scenario." CR>)
(<EQUAL? ,SCENARIO 3>
<COND (<VERB? FIND WHERE>
<TELL
"Your contact is Riznik, the antique dealer. His business card clearly
shows how to find him." CR>)>)
(<IN? ,CONTACT ,HERE>
<COND (<EQUAL? ,PRSO ,GLOBAL-CONTACT>
<PERFORM ,PRSA ,CONTACT ,PRSI>)
(T
<PERFORM ,PRSA ,PRSO ,CONTACT>)>
<RTRUE>)
(<VERB? FIND WHERE>
<TELL
"You have almost nothing to go on, but in any event, the contact was
supposed to find you at the station platform." CR>)
(T
<TELL
"You can't see your contact here, or if you can, you don't know it." CR>)>>
<GLOBAL SMALL-NUMS-TBL
<PLTABLE "one compartment"
"two compartments"
"three compartments"
"four compartments"
"five compartments">>
<OBJECT GLOBAL-COMPARTMENT
(LOC GLOBAL-OBJECTS)
(DESC "compartment")
(SYNONYM COMPARTMENT)
(ADJECTIVE MY)
(SCENARIO 1)
(ACTION GLOBAL-COMPARTMENT-F)>
<ROUTINE GLOBAL-COMPARTMENT-F ()
<COND (<VERB? FIND WALK-TO>
<COND (<EQUAL? ,HERE ,COMP-5 ,PASS-5>
<TELL "Right here." CR>)
(T
<TELL
"It's the southmost compartment along the passageway." CR>)>)
(<VERB? ENTER>
<COND (<EQUAL? ,HERE ,PASS-5>
<DO-WALK ,P?IN>
<RTRUE>)
(<EQUAL? ,HERE ,COMP-5>
<TELL "Right here." CR>)
(<OR <EQUAL? ,HERE ,PASS-2 ,PASS-3 ,PASS-4>
<EQUAL? ,HERE ,PASS-1>>
<DO-WALK ,P?WEST>
<RTRUE>)
(T
<TELL ,GET-THERE-FIRST CR>)>)
(<VERB? LEAVE DISEMBARK>
<COND (<EQUAL? ,HERE ,COMP-5>
<DO-WALK ,P?OUT>
<RTRUE>)
(T
<TELL ,GET-THERE-FIRST CR>
<RTRUE>)>)
(<AND <VERB? LOOK-INSIDE>
<NOT <EQUAL? ,HERE ,COMP-5>>>
<PERFORM ,PRSA ,COMP-N-DOOR>
<RTRUE>)
(<VERB? EXAMINE>
<COND (<EQUAL? ,HERE ,COMP-5>
<PERFORM ,V?LOOK>
<RTRUE>)
(T
<TELL "It's easier from inside." CR>)>)>>
<CONSTANT GET-THERE-FIRST "You'll have to get there first.">
<ROOM COMP-5
(LOC ROOMS)
(DESC "Your Compartment")
(OUT PER COMP-EXIT)
(EAST PER COMP-EXIT)
(WEST SORRY "Your situation is serious, but not desperate.")
(GLOBAL COMP-5-DOOR)
(ACTION COMP-5-F)>
<ROUTINE COMP-5-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"This is your compartment on the train to Litzenburg. You were lucky enough
to avoid having a roommate on this trip, so the two bench-style seats are
more than enough. The compartment itself is quite simple - the two seats
on either side, the openable window looking out over the nighttime landscape,
the emergency stop cord, the luggage rack. It easily could be worse; this is
the first-class car, after all. What little privacy exists on this train
is in the form of a door to the east which is now ">
<COND (<FSET? ,COMP-5-DOOR ,OPENBIT>
<TELL "open">)
(T
<TELL "closed">)>
<COND (<IN? ,COMP-BLOOD-STAIN ,HERE>
;<NOT <FSET? ,COMP-BLOOD-STAIN ,INVISIBLE>>
<TELL
". A blood stain is noticeable on the floor here, a grim reminder of
the task that lies ahead">)>
<TELL ,PERIOD-CR>)
(<EQUAL? .RARG ,M-ENTER>
<FCLEAR ,COMP-5-DOOR ,OPENBIT>
<RTRUE>)>>
<OBJECT COMP-CORD
(LOC COMP-5)
(DESC "emergency stop cord")
(SYNONYM CORD ROPE HANDLE)
(ADJECTIVE EMERGENCY STOP)
(FLAGS NDESCBIT)
(ACTION COMP-CORD-F)>
<ROUTINE COMP-CORD-F ()
<COND (<VERB? PULL>
<TELL
"You pull the cord, but nothing happens. This doesn't surprise you,
considering the train itself." CR>)
(<VERB? EXAMINE>
<TELL
"It's just a piece of cord with a small wooden handle on the end." CR>)>>
<OBJECT COMP-RACK
(LOC COMP-5)
(DESC "luggage rack")
(SYNONYM RACK)
(ADJECTIVE LUGGAGE)
(FLAGS OPENBIT TRANSBIT SEARCHBIT NDESCBIT CONTBIT SURFACEBIT)
(CAPACITY 100)
(ACTION COMP-RACK-F)>
<ROUTINE COMP-RACK-F ()
<COND (<OR <VERB? OPEN CLOSE>
<AND <VERB? EXAMINE> <NOT <FIRST? ,PRSO>>>>
<TELL
"It's just an open rack at your eye-level." CR>)>>
<OBJECT COMP-SEAT-BACK
(LOC COMP-5)
(DESC "rear-facing seat")
(SYNONYM SEAT BENCH)
(ADJECTIVE BACK-FACING REAR-FACING REAR FACING)
(FLAGS NDESCBIT CONTBIT SURFACEBIT OPENBIT SEARCHBIT)
(CAPACITY 100)
(ACTION COMP-SEAT-F)>
<OBJECT UNDER-SEAT
(LOC COMP-5)
(DESC "space under the rear bench")
(SYNONYM $XY)
(FLAGS NDESCBIT CONTBIT OPENBIT SEARCHBIT TRANSBIT)>
<OBJECT COMP-SEAT-FRONT
(LOC COMP-5)
(DESC "front-facing seat")
(SYNONYM SEAT BENCH)
(ADJECTIVE FRONT-FACING FORWARD-FACING FRONT FORWARD FACING)
(FLAGS NDESCBIT CONTBIT SURFACEBIT SEARCHBIT OPENBIT)
(CAPACITY 100)
(ACTION COMP-SEAT-F)>
<ROUTINE COMP-SEAT-F ()
<COND (<VERB? EXAMINE>
<TELL
"The seats are simple wooden benches, with nothing to soften the ride.
You are told that this is an improvement over second class, but it's
difficult to imagine what this could mean.">
<COND (<EQUAL? ,PRSO ,COMP-SEAT-BACK>
<TELL " Further inspection reveals a narrow
space under the seat.">)>
<COND (<FIRST? ,PRSO>
<TELL " ">
<PERFORM ,V?LOOK-INSIDE ,PRSO>
<RTRUE>)
(T
<CRLF>)>)
(<VERB? CLIMB-ON BOARD>
<TELL
"You've always thought better on your feet, and there's no better time
to be thinking." CR>)
(<AND <VERB? PUT-UNDER> <EQUAL? ,PRSI ,COMP-SEAT-BACK>>
<COND (<EQUAL? ,PRSO ,CAMERA-BAG ,BRIEFCASE ,CAMERA>
<TELL "It's too bulky to fit." CR>
<RTRUE>)>
<MOVE ,PRSO ,UNDER-SEAT>
<TELL
"You slide the " D ,PRSO " under the rear-facing bench." CR>)
(<VERB? LOOK-UNDER>
<COND (<EQUAL? ,PRSO ,COMP-SEAT-FRONT>
<TELL
"The front-facing bench has no space underneath it; however, a quick look
indicates that the rear bench has a narrow space underneath it." CR>)
(T
<PERFORM ,V?LOOK-INSIDE ,UNDER-SEAT>
<RTRUE>)>)
(<VERB? CRAWL-UNDER>
<TELL
"There's not enough room for you under the seat." CR>)
(<AND <VERB? REACH-IN>
<EQUAL? ,PRSO ,COMP-SEAT-BACK>>
<TELL "You reach under the seat">
<COND (<NOT <FIRST? ,UNDER-SEAT>>
<TELL ", but come up empty." CR>)
(T
<TELL
" and pull out the " D <FIRST? ,UNDER-SEAT> "." CR>
<MOVE <FIRST? ,UNDER-SEAT> ,WINNER>)>)>>
<OBJECT COMP-WINDOW
(LOC COMP-5)
(DESC "window")
(SYNONYM WINDOW)
(FLAGS NDESCBIT DOORBIT)
(ACTION COMP-WINDOW-F)>
<ROUTINE COMP-WINDOW-F ()
<COND (<VERB? LOOK-INSIDE CLEAN>
<PERFORM ,PRSA ,PASS-WINDOW>
<RTRUE>)
(<VERB? DISEMBARK LEAP-OFF ENTER EXIT>
<TELL
"Your situation is serious, but not desperate." CR>)
(<AND <VERB? PUT-THROUGH PUT>
<EQUAL? ,PRSI ,COMP-WINDOW>>
<COND (<ULTIMATELY-IN? ,PASSPORT ,PRSO>
<SETG PRSO ,PASSPORT>)
(<ULTIMATELY-IN? ,TICKET ,PRSO>
<SETG PRSO ,TICKET>)>
<COND (<EQUAL? <LOC ,PRSO> ,GLOBAL-OBJECTS ,LOCAL-GLOBALS>
<TELL "Funny." CR>)
(<NOT <ULTIMATELY-IN? ,PRSO ,WINNER>>
<TELL
"You're not holding that." CR>)
(<EQUAL? ,PRSO ,PASSPORT ,TICKET>
<TELL
"Without your " D ,PRSO
", you won't be leaving Frobnia for a good long time." CR>)
(<FSET? ,PRSI ,OPENBIT>
<REMOVE-TO-BOTTOM ,PRSO>
<TELL
"The " D ,PRSO " goes through the window and out of your life." CR>)
(T
<TELL
"The window's closed. Surely you don't mean through the window!" CR>)>)>>
<OBJECT PASS-WINDOW
(LOC LOCAL-GLOBALS)
(DESC "window")
(SYNONYM WINDOW)
(ACTION PASS-WINDOW-F)>
<ROUTINE PASS-WINDOW-F ()
<COND (<VERB? CLEAN>
<TELL
"The windows are clean enough, at least by FNR standards." CR>)
(<VERB? KICK MUNG>
<TELL
"With guards posted at either end of the car, and the level of tension high,
you would only call attention to yourself." CR>)
(<VERB? OPEN CLOSE>
<TELL
"The windows along the passageway aren't openable." CR>)
(<VERB? LOOK-INSIDE>
<COND (<RT-QUEUED? ,I-BAD-BORDER>
<TELL
"The landscape is dark and bleak; this is the area just preceding
the border checkpoint." CR>)
(,BAD-TUNNEL
<TELL
"From the sound of it, you're in a tunnel, and a long one at that.
There is only blackness punctuated by single trouble lights every
ten seconds or so." CR>)
(<RT-QUEUED? ,I-GORMNASH>
<TELL
"The train is sitting at the border station platform, which is
crowded with people." CR>)
(T
<TELL
"The sky is dark now, but you can see the occasional lights of small
villages here and there. You don't know exactly where you are, but
you are getting near the border checkpoint." CR>)>)>>
<OBJECT COMP-5-DOOR
(LOC LOCAL-GLOBALS)
(DESC "compartment door")
(SYNONYM DOOR)
(ADJECTIVE COMPARTMENT)
(FLAGS DOORBIT)>
<GLOBAL GUARD-NOTICE-FLAG <>>
<OBJECT GLOBAL-BAD-SPY
(LOC GLOBAL-OBJECTS)
(DESC "man in the trench coat")
(SYNONYM MAN SPY VIPER)
(ADJECTIVE BAD)
(SCENARIO 1)
(TRANSIENT <PLTABLE PASS-1 PASS-2 PASS-3 PASS-4 PASS-5 PASS-6
COMP-5 LAVATORY>)
(ACTION GLOBAL-BAD-SPY-F)>
<ROUTINE GLOBAL-BAD-SPY-F ()
<COND (<AND <LOC ,BAD-SPY>
<FSET? <LOC ,BAD-SPY> ,HUTBIT>
<FSET? ,HERE ,HUTBIT>
<NOT <EQUAL? ,HERE ,LAVATORY>>>
<COND (<AND <EQUAL? ,PRSI ,GLOBAL-BAD-SPY>
<VERB? SHOW GIVE>>
<COND (<EQUAL? ,PRSO ,DOCUMENT ,SHRED ,SHREDS>
<BAD-SPY-F>
<RTRUE>)
(T
<TELL
"There's nothing to be gained by doing that." CR>)>)
(<VERB? PHOTOGRAPH BRIBE LISTEN EXAMINE>
<PERFORM ,PRSA ,BAD-SPY>
<RTRUE>)
(<VERB? FOLLOW WATCH>
<TELL
"If you just stand around here, you'll be able to watch his movements.
On the other hand, it might look suspicious to him." CR>)>)
(<VERB? FOLLOW>
<TELL
"You don't know where he is at the moment." CR>)
(<VERB? PHOTOGRAPH BRIBE LISTEN>
<PERFORM ,PRSA ,BAD-SPY>
<RTRUE>)
(T
<CANT-SEE ,GLOBAL-BAD-SPY>)>>
<ROUTINE PASS-F (RARG "AUX" BSL)
<SET BSL <LOC ,BAD-SPY>>
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"You are standing in the passageway that runs along the length of the
car. ">
<COND (,AT-STATION
<TELL
"Just north of your compartment, a guard is standing. He is motioning
you out of the train to the south.">)
(T
<TELL
"At either end of the passageway, a guard is standing, machine gun
poised at his side.">)>
<TELL " Right now, you're standing outside ">
<COND (<EQUAL? ,HERE ,PASS-5>
<TELL "your own compartment">)
(T
<TELL "the " <GET ,PASS-TELLS <GETP ,HERE ,P?NS>>>)>
<TELL ".">
<COND (<AND .BSL <FSET? .BSL ,HUTBIT>>
<TELL
" A man, wearing a trench coat, is ">
<COND (<EQUAL? .BSL ,HERE>
<TELL "also standing here">)
(<EQUAL? .BSL ,PASS-5>
<TELL "standing outside of your
compartment, motioning for you to return">)
(T
<TELL "standing outside ">
<TELL "the "
<GET ,PASS-TELLS <GETP .BSL ,P?NS>>>
<TELL ", and talking to its
occupants in rapid-fire Frobnian">)>
<TELL ".">)>
<CRLF>)
(<EQUAL? .RARG ,M-ENTER>
<SETG CURRENT-PASS ,HERE>
<RFALSE>)>>
<ROUTINE HST? ()
<COND (<OR <IN? ,CAMERA ,WINNER>
<IN? ,DOCUMENT ,WINNER>
<IN? ,SHREDS ,WINNER>
<IN? ,COLOR-ROLL ,WINNER>
<IN? ,EXPOSED-ROLL ,WINNER>>
<RTRUE>)>>
<GLOBAL PASS-TELLS
<PLTABLE "northernmost compartment"
"second northernmost compartment"
"middle compartment"
"compartment next to your own"
""
"lavatory">>
<GLOBAL CURRENT-PASS <>>
<ROOM PASS-1
(LOC ROOMS)
(DESC "Outside 1st Compartment")
(IN-DIR P?WEST)
(WEST PER COMP-MOVE)
(NORTH SORRY "A stern-faced guard refuses to let you pass.")
(SOUTH PER PASS-MOVE-2)
(GLOBAL COMP-N-DOOR PASS-WINDOW BY-GUARDS BY-GUN)
(FLAGS HUTBIT)
(NS 1)
(EJECT
"Two newlyweds here are enjoying their privacy, and not enjoying your
presence. The woman, who appears to be the man of the house, escorts
you out of the door.")
(ACTION PASS-F)>
<ROOM PASS-2
(LOC ROOMS)
(DESC "Outside 2nd Compartment")
(IN-DIR P?WEST)
(WEST PER COMP-MOVE)
(NORTH PER PASS-MOVE-1)
(SOUTH PER PASS-MOVE-3)
(GLOBAL COMP-N-DOOR PASS-WINDOW BY-GUARDS BY-GUN)
(FLAGS HUTBIT)
(NS 2)
(EJECT
"A family of five is having what appears to be a rather heated argument.
You are nearly socked in the head before you retreat to the corridor.
The door slams behind you.")
(ACTION PASS-F)>
<ROOM PASS-3
(LOC ROOMS)
(DESC "Outside 3rd Compartment")
(IN-DIR P?WEST)
(WEST PER COMP-MOVE)
(NORTH PER PASS-MOVE-2)
(SOUTH PER PASS-MOVE-4)
(GLOBAL COMP-N-DOOR PASS-WINDOW BY-GUARDS BY-GUN)
(FLAGS HUTBIT)
(NS 3)
(EJECT
"This smoke-filled compartment is filled with a dozen or more men, playing
some sort of card game. They regard you with hostility, and force you
back into the corridor.")
(ACTION PASS-F)>
<ROOM PASS-4
(LOC ROOMS)
(DESC "Outside 4th Compartment")
(IN-DIR P?WEST)
(WEST PER COMP-MOVE)
(NORTH PER PASS-MOVE-3)
(SOUTH PER PASS-MOVE-5)
(GLOBAL COMP-N-DOOR PASS-WINDOW BY-GUARDS BY-GUN)
(FLAGS HUTBIT)
(NS 4)
(EJECT
"Three women are here, busily engaging in what probably amounts to gossip.
They stop abruptly as you enter, and stare at you stonily. After a moment,
you mumble some apologetic word and return to the corridor.")
(ACTION PASS-F)>
<ROUTINE COMP-5-ENTER ()
<COND (<AND <NOT <SLOW-CLOCK-QUEUED? ,I-BAD-WAITS>>
<NOT <SLOW-CLOCK-QUEUED? ,I-BAD-LAV-WAITS>>>
<TELL
"You enter your compartment, closing the door behind you">
<TELL ,PERIOD-CR>)>
<SETG DONT-DESCRIBE-ROOM T>
,COMP-5>
<ROOM PASS-5
(LOC ROOMS)
(DESC "Outside Your Compartment")
(IN-DIR P?WEST)
(WEST PER COMP-5-ENTER)
(NORTH PER PASS-MOVE-4)
(SOUTH PER PASS-MOVE-6)
(GLOBAL COMP-5-DOOR PASS-WINDOW BY-GUARDS BY-GUN)
(FLAGS HUTBIT)
(NS 5)
(ACTION PASS-F)>
<ROOM PASS-6
(LOC ROOMS)
(DESC "Outside Lavatory")
(IN PER LAVATORY-MOVE)
(WEST PER LAVATORY-MOVE)
(SOUTH SORRY "A stern-faced guard refuses to let you pass.")
(NORTH PER PASS-MOVE-5)
(GLOBAL LAVATORY-DOOR PASS-WINDOW BY-GUARDS BY-GUN)
(FLAGS HUTBIT)
(NS 6)
(ACTION PASS-F)>
<ROUTINE COMP-MOVE ()
<COND (<FSET? ,COMP-N-DOOR ,OPENBIT>
,COMP-N)
(<IN? ,BAD-SPY ,HERE>
<TELL
"It would be not only rude, but suspicious, for you to enter now." CR>
<RFALSE>)
(T
<TELL
"The door to that compartment is closed." CR>
<RFALSE>)>>
<ROUTINE LAVATORY-MOVE ()
<COND (<FSET? ,LAVATORY-DOOR ,OPENBIT>
<TELL "You">)
(T
<FSET ,LAVATORY-DOOR ,OPENBIT>
<TELL "You open the door, then">)>
<TELL " enter the lavatory. ">
<LAVATORY-F ,M-LOOK>
<SETG DONT-DESCRIBE-ROOM T>
,LAVATORY>
<ROUTINE PASS-MOVE-1 ()
<PASS-MOVE ,PASS-1>>
<ROUTINE PASS-MOVE-2 ()
<PASS-MOVE ,PASS-2>>
<ROUTINE PASS-MOVE-3 ()
<PASS-MOVE ,PASS-3>>
<ROUTINE PASS-MOVE-4 ()
<PASS-MOVE ,PASS-4>>
<ROUTINE PASS-MOVE-5 ()
<PASS-MOVE ,PASS-5>>
<ROUTINE PASS-MOVE-6 ()
<PASS-MOVE ,PASS-6>>
<ROUTINE PASS-MOVE (WHR "OPTIONAL" (NFP <>) "AUX" BSL)
<SET BSL <LOC ,BAD-SPY>>
<COND (<NOT .NFP>
<TELL "You move along the passageway until you come to ">
<COND (<EQUAL? .WHR ,PASS-5>
<TELL "your own compartment">)
(T
<TELL "the " <GET ,PASS-TELLS <GETP .WHR ,P?NS>>>)>
<TELL ".">)>
<COND (,AT-STATION
<TELL
" Just north of your position, a guard is standing. He is motioning
you out of the train to the south.">)>
<COND (<NOT ,GUARD-NOTICE-FLAG>
<TELL
" You scan the passageway, noting guards at either end, machine guns
poised at their sides. You don't remember them from the beginning of
the trip, so you can only suppose that security has been tightened in the
search for the American agent.">
<SETG GUARD-NOTICE-FLAG T>)>
<COND (<AND .BSL <FSET? .BSL ,HUTBIT>>
<TELL CR CR>
<COND (,BAD-SPY-SEEN
<TELL "The man in the coat">)
(T
<TELL "Another man, wearing a trench coat,">)>
<TELL " is ">
<COND (<EQUAL? ,BAD-SPY-SEEN .BSL>
<TELL "still ">)>
<SETG BAD-SPY-SEEN .BSL>
<COND (<EQUAL? .BSL .WHR>
<TELL "standing here">)
(<EQUAL? .BSL ,PASS-5>
<TELL
"standing outside of your compartment, motioning for you to return">)
(T
<TELL "standing outside ">
<TELL "the "
<GET ,PASS-TELLS <GETP .BSL ,P?NS>>>
<TELL ", and talking to its
occupants in rapid-fire Frobnian">)>
<HST-CHECK .BSL .WHR>
<TELL ".">)>
<DOC-CHECK>
<CRLF>
<SETG DONT-DESCRIBE-ROOM T>
.WHR>
<ROUTINE DOC-CHECK ()
<COND (<AND <IN? ,BAD-SPY ,HERE> <IN? ,DOCUMENT ,WINNER>>
<TELL CR CR>
<REMOVE ,DOCUMENT>
<FSET ,DOCUMENT ,PENBIT>
<TELL
"He looks again, this time directly at the document. \"Ah, thank you very
much for returning this document,\" he says. He takes it from you and
regards you with contempt. \"We may need to talk more about this later.\"
And with this, he returns to his conversation with the other passengers.">
<SETG SUSPICION <+ ,SUSPICION 1>>)>>
<ROUTINE HST-CHECK (BSL WHR "OPTIONAL" (STR <>))
<COND (<NOT .STR>
<SET STR
". He gives you a sidelong glance, and then a subtle double take, and
you fear you have given yourself away">)>
<COND (<AND <HST?>
<NOT ,HST-FLAG>
<L? <ABS <- <GETP .BSL ,P?NS>
<GETP .WHR ,P?NS>>> 3>>
<TELL .STR>
<SETG HST-FLAG T>
<SETG SUSPICION <+ ,SUSPICION 1>>)>>
<GLOBAL BAD-SPY-SEEN <>>
<ROUTINE LAVATORY-EXIT ()
<COMP-EXIT ,LAVATORY-DOOR ,PASS-6>>
<ROUTINE COMP-EXIT ("OPTIONAL" (DOOR ,COMP-5-DOOR) (PASS ,PASS-5))
<COND (<NOT <FSET? .DOOR ,OPENBIT>>
<COND (<EQUAL? .DOOR ,COMP-5-DOOR>
<FSET .DOOR ,OPENBIT>)>
<TELL "You open the door and">)
(T
<TELL "You">)>
<TELL
" walk out into the passageway.">
<PASS-MOVE .PASS T>>
<GLOBAL HST-FLAG <>>
<ROOM COMP-N
(LOC ROOMS)
(DESC "Compartment")
(ACTION COMP-N-F)>
<ROUTINE COMP-N-F (RARG)
<COND (<EQUAL? .RARG ,M-ENTER>
<TELL <GETP ,CURRENT-PASS ,P?EJECT> CR>
<FCLEAR ,COMP-N-DOOR ,OPENBIT>
<GOTO ,CURRENT-PASS <>>
<RTRUE>)>>
<OBJECT COMP-N-DOOR
(LOC LOCAL-GLOBALS)
(DESC "compartment door")
(SYNONYM DOOR)
(ADJECTIVE COMPARTMENT)
(FLAGS DOORBIT)
(ACTION COMP-N-DOOR-F)>
<ROUTINE COMP-N-DOOR-F ()
<COND (<AND <VERB? OPEN CLOSE> <IN? ,BAD-SPY ,HERE>>
<TELL
"That would be terribly rude." CR>)
(<VERB? LOOK-INSIDE EXAMINE>
<COND (<IN? ,BAD-SPY ,HERE>
<TELL
"The man in the coat is talking to the passengers inside; you
can't tell much about them from here, and it would be rude to
force yourself into the doorway." CR>)
(<FSET? ,PRSO ,OPENBIT>
<TELL
"You might as well just go in and find out..." CR>)>)>>
<ROOM LAVATORY
(LOC ROOMS)
(DESC "Lavatory")
(OUT PER LAVATORY-EXIT)
(EAST PER LAVATORY-EXIT)
(GLOBAL LAVATORY-DOOR)
(ACTION LAVATORY-F)>
<ROUTINE LAVATORY-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"Like most facilities here, it is rather primitive.
There is a flush toilet, naturally, and a sink with a mirror above it.
Conveniently located alongside the sink is a paper towel dispenser -
inconveniently, there is no place to put the paper towels once used. A small,
grimy window looks out over the darkened landscape." CR>)>>
<OBJECT LAVATORY-DOOR
(LOC LOCAL-GLOBALS)
(DESC "lavatory door")
(SYNONYM DOOR)
(ADJECTIVE LAVATORY)
(FLAGS DOORBIT)>
<OBJECT LAV-TOILET
(LOC LAVATORY)
(DESC "toilet")
(SYNONYM TOILET BOWL HANDLE)
(ADJECTIVE TOILET)
(FLAGS NDESCBIT OPENBIT SEARCHBIT CONTBIT)
(CAPACITY 20)
(ACTION LAV-TOILET-F)>
<ROUTINE LAV-TOILET-F ()
<COND (<VERB? USE>
<PERFORM ,PRSA ,GLOBAL-LAVATORY>
<RTRUE>)
(<VERB? CLIMB-ON BOARD>
<TELL
"You aren't in need of the facilities at the moment." CR>)
(<AND <VERB? PUT>
<EQUAL? ,PRSI ,LAV-TOILET>
<G? <GETP ,PRSO ,P?SIZE> 5>>
<TELL
"That's not the sort of thing one puts in the toilet." CR>)
(<AND <VERB? PUT>
<EQUAL? ,PRSI ,LAV-TOILET>
<EQUAL? ,PRSO ,PAPER-TOWEL>>
<TELL
"The paper towel drops into the toilet." CR>
<REMOVE ,PAPER-TOWEL>
<THIS-IS-IT ,WET-PAPER-TOWEL>
<MOVE ,WET-PAPER-TOWEL ,LAV-TOILET>)
(<VERB? OPEN CLOSE>
<TELL
"You can't open and close the toilet; there's no lid, and how very
typical." CR>)
(<AND <VERB? SEARCH LOOK-INSIDE>
<IN? ,SHRED ,LAV-TOILET>
<NOT <NEXT? ,SHRED>>
<NOT <FSET? ,SHRED ,TOUCHBIT>>>
<TELL
"You see a small shred of the document floating in the toilet." CR>)
(<VERB? FLUSH MOVE>
<TELL
"With an all too loud whooshing sound, the toilet flushes.">
<COND (<OR <IN? ,DOCUMENT ,LAV-TOILET>
<IN? ,SHREDS ,LAV-TOILET>>
<RANDOM-QUEUE ,I-SHRED 25>)>
<DOWN-THE-DRAIN ,LAV-TOILET 6>
<CRLF>)>>
<ROUTINE I-SHRED ()
<MOVE ,SHRED ,LAV-TOILET>
<DE-RANDOM-QUEUE>
<RFALSE>>
<GLOBAL DRAIN-TBL <LTABLE 0 0 0 0 0 0 0 0 0 0>>
<ROUTINE DOWN-THE-DRAIN (OBJ "OPTIONAL" (SIZE 2) "AUX" (OFF 0) F N)
<SET F <FIRST? .OBJ>>
<REPEAT ()
<COND (<NOT .F> <RETURN>)
(T
<SET N <NEXT? .F>>
<COND (<AND <L? <GETP .F ,P?SIZE> .SIZE>
<NOT <EQUAL? .F ,TICKET ,PASSPORT>>>
<REMOVE .F>
<SET OFF <+ .OFF 1>>
<PUT ,DRAIN-TBL .OFF .F>)>)>
<SET F .N>>
<COND (<NOT <ZERO? .OFF>>
<TELL " Down the drain, along with the water, goes the ">
<REPEAT ()
<TELL D <GET ,DRAIN-TBL .OFF>>
<COND (<L? <SET OFF <- .OFF 1>> 1>
<RETURN>)
(<EQUAL? .OFF 1>
<TELL ", and ">)
(T
<TELL ", ">)>>
<TELL ".">)>>
<OBJECT GLOBAL-LAVATORY
(LOC GLOBAL-OBJECTS)
(DESC "lavatory")
(SYNONYM LAVATORY WC BATHROOM)
(SCENARIO 1)
(ACTION GLOBAL-LAVATORY-F)>
<ROUTINE GLOBAL-LAVATORY-F ()
<COND (<VERB? ENTER WALK-TO FIND>
<COND (<EQUAL? ,HERE ,PASS-6>
<DO-WALK ,P?IN>
<RTRUE>)
(<EQUAL? ,HERE ,LAVATORY>
<TELL "There is no other..." CR>)
(T
<TELL
"The lavatory, as you recall, is at the south end of the passageway." CR>)>)
(<VERB? USE>
<COND (<EQUAL? ,HERE ,LAVATORY>
<TELL
"You have no need of it now, and a good thing too. Just looking at the
fixtures is likely to cause disease." CR>)
(T
<TELL ,GET-THERE-FIRST CR>)>)
(<VERB? EXAMINE>
<COND (<EQUAL? ,HERE ,LAVATORY>
<PERFORM ,V?LOOK>
<RTRUE>)
(T
<TELL "You should go there first." CR>)>)
(<VERB? LEAVE>
<COND (<EQUAL? ,HERE ,LAVATORY>
<DO-WALK ,P?OUT>
<RTRUE>)
(T
<TELL "You're not there!" CR>)>)>>
<OBJECT BRIEFCASE
(LOC COMP-5)
(DESC "briefcase")
(SYNONYM CASE BRIEFCASE)
(FLAGS TAKEBIT CONTBIT SEARCHBIT TRYTAKEBIT)
(SCENARIO 1)
(CAPACITY 65)
(SIZE 16)
(ACTION BRIEFCASE-F)>
<ROUTINE BRIEFCASE-F ()
<COND (<AND <VERB? TAKE>
<EQUAL? ,PRSO ,BRIEFCASE>
<FSET? ,PRSO ,OPENBIT>>
<TELL "You'd best close the briefcase first." CR>