-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathborder.zil
5098 lines (4788 loc) · 167 KB
/
border.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
"BORDER for
BORDER ZONE
(c) Copyright 1987 Infocom, Inc. All Rights Reserved."
<ROOM OUTF-1
(LOC ROOMS)
(DESC "Outside Fence")
(PATH 0)
(EAST TO OUTF-2 IF FALSE-FLAG ELSE
"You crawl along the ground until you reach a point directly south of the
next guard tower.")
(WEST SORRY
"That would put you directly in front of the border station, and that
would be suicidal.")
(SOUTH PER NOMANS-MOVE)
(SE SORRY
"Given the rate at which the searchlights are turning, it would be suicidal
to attempt anything other than a direct run at the forest to the south.")
(SW SORRY
"Given the rate at which the searchlights are turning, it would be suicidal
to attempt anything other than a direct run at the forest to the south.")
(NORTH PER FENCE-CROSS)
(NOMAN
<TABLE <TABLE 180 180 0 0> <TABLE 270 225 0 0> <TABLE 270 240 0 0> C2>)
(ACROSS INF-1)
(NS 1)
(EW 3)
(ACTION OUTF-F)
(GPOS 0)
(FLAGS GVIEWBIT SLVIEWBIT)
(GLOBAL SEARCHLIGHTS FENCE FENCE-HOLE FENCE-SIGN TOWER GUARDS BORDER-FENCE)>
<ROUTINE OUTF-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"You are crouched at the base of the first fence. Behind you is the
hundred yards of no-man's-land you've crossed, searchlights dancing
across the snow-covered ground. Before you, not fifteen feet away, is
the base of the guard tower, and beyond that, another fence, the
last barrier to your freedom. Although you are relatively exposed,
the low snowdrifts provide reasonable cover from the guards." CR CR>
<SETG P-WALK-DIR <>>
<PERFORM ,V?EXAMINE ,FENCE>
<COND (<NOT ,G-WATCH>
<CRLF>
;<I-CLOCKER ,CLOCK-MOVE>
<PERFORM ,V?EXAMINE ,GUARDS>
;<SETG CLOCK-MOVE 0>)>
<RTRUE>)>>
<OBJECT CAR-GUARDS
(LOC GLOBAL-OBJECTS)
(DESC "men from the car")
(SYNONYM MEN GUARDS)
(FLAGS SEARCHBIT)
(SCENARIO 2)
(ACTION CAR-GUARDS-F)>
<ROUTINE CAR-GUARDS-F ()
<COND (<AND <IN? ,CAR ,ROAD-END>
<EQUAL? ,HERE ,NORTH-HUT ,SOUTH-HUT ,ROAD-END>>
<COND (<VERB? LISTEN EXAMINE WATCH>
<CAR-SEQ-TELL>
<RTRUE>)>)
(<AND <IN? ,CAR ,ROAD-END>
<EQUAL? ,HERE ,BEHIND-HUT ,HUT-LIVING>>
<COND (<VERB? LISTEN EXAMINE WATCH>
<TELL
"You can't see the guards here, but you can faintly hear them talking." CR>)>)
(T
<TELL
"There are no guards here, which is fortunate." CR>)>>
<OBJECT SCOUT
(DESC "guard")>
<OBJECT GLOBAL-SCOUT
(LOC GLOBAL-OBJECTS)
(DESC "guard")
(SYNONYM GUARD SCOUT)
(ADJECTIVE LONE SINGLE)
(SCENARIO 2)
(ACTION GLOBAL-SCOUT-F)>
<ROUTINE GLOBAL-SCOUT-F ()
<COND (<NOT <LOC ,SCOUT>>
<CANT-SEE ,GLOBAL-SCOUT>)
(<VERB? EXAMINE WATCH>
<SCOUT-TELL <>>
<RTRUE>)
(T
<TELL ,TOO-FAR CR>)>>
<ROUTINE SCOUT-TELL ("OPTIONAL" (LOOK? T) "AUX" (SS <>))
<COND (<NOT .SS> <SET SS " A">)>
<COND (<NOT .LOOK?> <SET SS "The">)>
<COND (<AND <EQUAL? ,HERE ,NORTH-HUT ,SOUTH-HUT>
<IN? ,SCOUT ,OUTSIDE-HUT>>
<TELL .SS
" scout is in front of the hut, walking slowly toward the north side." CR>)
(<AND <EQUAL? ,HERE ,BEHIND-HUT ,HUT-LIVING>
<IN? ,SCOUT ,NORTH-HUT>>
<TELL .SS
" scout is slowly making his way toward the back side of the hut." CR>)
(<AND <EQUAL? ,HERE ,SOUTH-HUT>
<IN? ,SCOUT ,BEHIND-HUT>>
<TELL .SS
" scout is coming around the back side of the hut, and heading toward the
south side." CR>)
(<AND <EQUAL? ,HERE ,ROAD-END>
<IN? ,SCOUT ,SOUTH-HUT>>
<TELL .SS
" scout is rounding the south side of the hut and heading back toward
the group of guards at the front door." CR>)
(<NOT .LOOK?>
<CANT-SEE ,SCOUT>)
(T
<RFALSE>)>>
<OBJECT GUARDS
(LOC LOCAL-GLOBALS)
(DESC "guard")
(SYNONYM GUARDS GUARD ;"Added 9/23" MEN)
(ACTION GUARDS-F)>
<ROUTINE GUARDS-F ("AUX" MT (POS <GETP ,HERE ,P?GPOS>) DIR FACE? TMP)
<COND (<AND <AT-NML?> <NOT <VERB? OFF-2>>>
<COND (<VERB? EXAMINE WATCH>
<TELL
"You can't make them out too well from here; they keep moving in and out
of the searchlight's glare." CR>)
(<VERB? WAVE CALL YELL>
<TELL
"A suicidal idea, and you're pretty far away as well." CR>)
(T <TELL
"The guards are too far away." CR>)>)
(<AND <VERB? OFF-2>
<EQUAL? ,PRSO ,TIMING-OBJECT ,WATCHING-OBJECT>>
<COND (<NOT ,G-WATCH>
<TELL "You weren't watching them." CR>
<RTRUE>)>
<SETG G-WATCH <>>
<SETG CLOCK-MOVE 4>
<FLUSH-WATCHER>
<COND (<NOT ,SAVE-FLAG>
<TELL
"You're no longer watching the guards." CR>)>
<RTRUE>)
(<VERB? WATCH>
<COND (,G-WATCH
<TELL "You're already watching them." CR>)
(T
<COND (,SL-WATCH
<PERFORM ,V?OFF-2
,TIMING-OBJECT
,SEARCHLIGHTS>
<CRLF>)>
<SETG G-WATCH T>
<SETG CHRONOGRAPH-ON T>
<SETG CLOCK-MOVE 4>
<GUARD-WATCHER T>
<TELL
"You start to watch the guards, and take a moment to check their position
after everything you do.|
|
[The asterisk is your position, the T's are the three guard towers, and the
< and > characters are the guards, indicating their direction of motion.]"
CR>)>)
(<VERB? EXAMINE>
<I-CLOCKER ,CLOCK-MOVE>
<SETG CLOCK-MOVE 0>
<COND (<ZERO? .POS> <SET DIR "right">)
(<EQUAL? .POS 180> <SET DIR "left">)>
<SET MT <MOD ,CLOCK-TIME 180>>
<COND (<NOT <L? .MT 90>> <SET MT <- 180 .MT>>)>
<SET FACE? <GUARDS-FACING-EACH-OTHER?>>
<TELL
"Two guards are now visible, patrolling the area between the fences; ">
<COND (<EQUAL? .POS 90>
<SET TMP <* </ <- 100 .MT> 10> 10>>
<COND (<ZERO? .TMP> <SET TMP 5>)>
<TELL "both are about " N .TMP
" yards away, ">
<COND (<NOT ,GUARD-CHASE>
<TELL "and they are walking ">
<FACE-TELL .FACE? <>>)
(T
<TELL "moving carefully in your
direction, weapons drawn.">)>)
(T
<SET TMP <* </ <+ .MT 5> 10> 10>>
<COND (<ZERO? .TMP> <SET TMP 5>)>
<TELL "both are off to your " .DIR ", though
one is about " N .TMP " yards away, and the other is much farther off.
The guards are moving ">
<FACE-TELL .FACE? <>>)>
<COND (<NOT ,G-WATCH>
<TELL
" Since they are moving all the time, you would do
well to WATCH them.">)>
<CRLF>)
(<VERB? CALL YELL WAVE>
<TELL "Not very smart." CR>)
(T
<TELL
"You can't get close enough to the guards, and it's just as well." CR>)>>
<ROUTINE FLUSH-WATCHER ()
<SCREEN 1>
<BUFOUT <>>
<CURSET 2 1>
<INVERSE-LINE>
<CURSET 3 1>
<INVERSE-LINE>
<BUFOUT T>
<SCREEN 0>>
<ROUTINE FACE-TELL (FACE? "OPTIONAL" (CR? T))
<COND (.FACE? <TELL "toward">)
(T <TELL "away from">)>
<TELL " each other.">
<COND (.CR? <CRLF>)>
<RTRUE>>
<ROOM INF-1
(LOC ROOMS)
(NS 1)
(EW 3)
(PATH 0)
(DESC "Inside Fence")
(EAST TO INF-2 IF FALSE-FLAG ELSE
"You crawl along the ground until you reach a point directly south of the
next guard tower.")
(WEST SORRY
"That would put you directly in front of the border station, and that
would be suicidal.")
(NW SORRY
"That would put you directly in front of the border station, and that
would be suicidal.")
(SOUTH PER FENCE-CROSS)
(NE PER GUARD-MOVE-TWR)
(NORTH PER GUARD-CATCH)
(ACROSS OUTF-1)
(ACTION INF-F)
(GPOS 0)
(FLAGS GVIEWBIT)
(GLOBAL SEARCHLIGHTS FENCE FENCE-HOLE FENCE-SIGN TOWER GUARDS BORDER-FENCE)>
<ROUTINE INF-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"You're just inside the fence. Fifteen feet before you is the base of
the guard tower, and beyond that the fence at the border itself. Behind
you, to the south, is the hundred yards of no-man's-land you've been
across. It is peaceful here, but the searchlights passing harmlessly
overhead remind you that you are in great danger. Fortunately, some small
snowdrifts give some protection from the guards, although you're
easily spotted once their suspicions are aroused. You'd best be very
careful if you're to avoid detection." CR>
<COND (<NOT ,G-WATCH>
<CRLF>
;<I-CLOCKER ,CLOCK-MOVE>
<SETG P-WALK-DIR <>>
<PERFORM ,V?EXAMINE ,GUARDS>
;<SETG CLOCK-MOVE 0>)>
<RTRUE>)>>
<ROUTINE FENCE-CROSS ()
<SETG P-WALK-DIR <>>
<PERFORM ,V?ENTER ,FENCE>
<RFALSE>>
<ROOM OUTF-2
(LOC ROOMS)
(DESC "Outside Fence")
(NS 1)
(EW 4)
(PATH 0)
(NORTH PER FENCE-CROSS)
(EAST TO OUTF-3 IF FALSE-FLAG ELSE
"You crawl along the ground until you reach a point directly south of the
next guard tower.")
(WEST TO OUTF-1 IF FALSE-FLAG ELSE
"You crawl along the ground until you reach a point directly south of the
next guard tower.")
(SOUTH PER NOMANS-MOVE)
(SE SORRY
"Given the rate at which the searchlights are turning, it would be suicidal
to attempt anything other than a direct run at the forest to the south.")
(SW SORRY
"Given the rate at which the searchlights are turning, it would be suicidal
to attempt anything other than a direct run at the forest to the south.")
(NOMAN
<TABLE <TABLE 90 135 0 0> <TABLE 180 180 0 0> <TABLE 270 225 0 0> D2>)
(ACROSS INF-2)
(ACTION OUTF-F)
(GPOS 90)
(FLAGS GVIEWBIT SLVIEWBIT)
(GLOBAL SEARCHLIGHTS FENCE FENCE-HOLE FENCE-SIGN TOWER GUARDS BORDER-FENCE)>
<ROOM INF-2
(LOC ROOMS)
(NS 1)
(EW 4)
(PATH 0)
(DESC "Inside Fence")
(EAST TO INF-3 IF FALSE-FLAG ELSE
"You crawl along the ground until you reach a point directly south of the
next guard tower.")
(WEST TO INF-1 IF FALSE-FLAG ELSE
"You crawl along the ground until you reach a point directly south of the
next guard tower.")
(NE PER GUARD-CATCH)
(NW PER GUARD-CATCH)
(NORTH PER GUARD-MOVE-TWR)
(SOUTH PER FENCE-CROSS)
(ACROSS OUTF-2)
(ACTION INF-F)
(GPOS 90)
(FLAGS GVIEWBIT)
(GLOBAL SEARCHLIGHTS FENCE FENCE-HOLE FENCE-SIGN TOWER GUARDS BORDER-FENCE)>
<ROOM OUTF-3
(LOC ROOMS)
(DESC "Outside Fence")
(NS 1)
(EW 5)
(PATH 0)
(NORTH PER FENCE-CROSS)
(EAST SORRY "That would be suicidal.")
(WEST TO OUTF-2 IF FALSE-FLAG ELSE
"You crawl along the ground until you reach a point directly south of the
next guard tower.")
(SOUTH PER NOMANS-MOVE)
(SE SORRY
"Given the rate at which the searchlights are turning, it would be suicidal
to attempt anything other than a direct run at the forest to the south.")
(SW SORRY
"Given the rate at which the searchlights are turning, it would be suicidal
to attempt anything other than a direct run at the forest to the south.")
(NOMAN
<TABLE <TABLE 90 120 0 0> <TABLE 90 135 0 0> <TABLE 180 180 0 0> E2>)
(ACROSS INF-3)
(ACTION OUTF-F)
(GPOS 180)
(FLAGS GVIEWBIT SLVIEWBIT)
(GLOBAL SEARCHLIGHTS FENCE FENCE-HOLE FENCE-SIGN TOWER GUARDS BORDER-FENCE)>
<ROOM INF-3
(LOC ROOMS)
(NS 1)
(EW 5)
(PATH 0)
(DESC "Inside Fence")
(EAST SORRY "That would be suicidal.")
(WEST TO INF-2 IF FALSE-FLAG ELSE
"You crawl along the ground until you reach a point directly south of the
next guard tower.")
(NW PER GUARD-MOVE-TWR)
(NORTH PER GUARD-CATCH)
(NE SORRY "That would be suicidal.")
(SOUTH PER FENCE-CROSS)
(ACROSS OUTF-3)
(ACTION INF-F)
(GPOS 180)
(FLAGS GVIEWBIT)
(GLOBAL SEARCHLIGHTS FENCE FENCE-HOLE FENCE-SIGN TOWER GUARDS BORDER-FENCE)>
<OBJECT FENCE-HOLE
(LOC LOCAL-GLOBALS)
(DESC "hole")
(SYNONYM HOLE SLIT CUT BREAK)
(ACTION FENCE-HOLE-F)>
<ROUTINE FENCE-HOLE-F ()
<COND (<VERB? OPEN>
<PERFORM ,V?OPEN ,FENCE>
<RTRUE>)
(<VERB? CUT>
<PERFORM ,V?CUT ,FENCE ,PRSI>
<RTRUE>)
(<AND <NOT <FSET? ,HERE ,FENCECUTBIT>>
<NOT <FSET? ,HERE ,FENCEBLOWNBIT>>>
<TELL
"There's no hole here." CR>)
(<VERB? ENTER BOARD>
<PERFORM ,PRSA ,FENCE>
<RTRUE>)
(<VERB? EXAMINE>
<COND (<OR <FSET? ,HERE ,FENCEBLOWNBIT>
<FSET? ,HERE ,FENCEBENTBIT>>
<TELL
"The hole in the fence is large enough to go through." CR>)
(T
<TELL
"The vertical slit is about three feet long, though you'd
have to get it out of the way if you wanted to go through." CR>)>)>>
<ROUTINE GUARD-CATCH ()
<JIGS-UP
"You start across to the guard tower, but you are spotted by one of the
guards, who was facing in your direction. He calls out, and you turn to
find a place to hide. A shot rings out, and you are hit! When you come
to, you are surrounded by guards.">
<RFALSE>>
<ROUTINE GUARD-MOVE-TWR ("OPTIONAL" (RM ,TWR-2))
<COND (<IN-GUARD-VIEW?>
<GUARD-CATCH>)
(T
<TELL
"You run across to the base of the ">
<COND (<EQUAL? .RM ,TWR-2> <TELL "guard tower">)
(<EQUAL? .RM ,BDR-2> <TELL "border fence">)
(T <TELL "first fence">)>
<TELL "; apparently, you weren't
seen by the guards." CR CR>
.RM)>>
<ROUTINE GUARD-MOVE-BDR () <GUARD-MOVE-TWR ,BDR-2>>
<ROUTINE GUARD-MOVE-INF () <GUARD-MOVE-TWR ,INF-2>>
<ROUTINE LADDER-CLIMB ()
<SETG CLOCK-MOVE 10>
<TELL
"You quietly ascend the ladder and arrive at the closed door." CR CR>
,LADDER-TOP>
<ROUTINE LADDER-DESCEND ()
<COND (,ON-BRACE?
<TELL
"You'd better get off the brace first." CR>
<RFALSE>)>
<SETG CLOCK-MOVE 10>
<TELL
"You clamber down the ladder to the base of the tower." CR CR>
,TWR-2>
<ROOM TOWER-SOUTH
(LOC ROOMS)
(NS 1)
(EW 4)
(GPOS 90)
(PATH 0)
(DESC "Tower, South Side")
(LDESC
"The guard post itself looks both north and south. To the south, one can
look out over the no-man's-land and toward the forest.
The machine gun bolted to the floor is a grim reminder of the obstacles you
have faced so far. To the north, only a few feet beyond reach and about
five feet below you, lies the border fence.")
(NORTH SORRY
"That would mean jumping off the tower to your death.")
(OUT-DIR P?WEST)
(WEST TO LADDER-TOP IF TOWER-DOOR IS OPEN)
(FLAGS GVIEWBIT)
(GLOBAL TOWER-DOOR BORDER-FENCE FENCE TOWER)>
<OBJECT GLOBAL-MACHINE-GUN
(LOC GLOBAL-OBJECTS)
(DESC "machine gun")
(SYNONYM GUN GUNS MACHINE-GUN)
(SCENARIO 2)
(ADJECTIVE MACHINE)
(ACTION GLOBAL-MACHINE-GUN-F)>
<ROUTINE GLOBAL-MACHINE-GUN-F ()
<COND (<EQUAL? ,HERE ,BDR-2>
<TELL
"The gun is on the other side of the tower." CR>)
(<VERB? EXAMINE>
<TELL
"It's hard to tell much, since all you can see is the business end, but
it's primary purpose would appear to be sniping at people crossing
the open field to the south. It doesn't appear that it can pivot
enough to hit anybody that has crossed the outer fence." CR>)
(T
<TELL ,TOO-FAR CR>)>>
<OBJECT MACHINE-GUN
(LOC TOWER-SOUTH)
(DESC "machine gun")
(SYNONYM GUN MACHINE-GUN)
(ADJECTIVE MACHINE)
(FLAGS NDESCBIT)
(ACTION MACHINE-GUN-F)>
<ROUTINE MACHINE-GUN-F ()
<COND (<VERB? SHOOT KILL>
<TELL
"The machine gun is on a turret that swings in an arc of about 90 degrees,
taking in the entirety of no-man's-land. In retrospect, it must appear a
strange oversight that the gun cannot be used on the area between the fences.
In any event, there's nothing to be gained by firing the gun except to vent
some frustration." CR>)>>
<ROUTINE TOWER-ENTRY ()
<COND (,ON-BRACE?
<TELL "You'd better get off the brace first." CR>
<RFALSE>)
(<FSET? ,TOWER-DOOR ,OPENBIT>
,TOWER-SOUTH)
(T
<TELL "The tower door is closed." CR>
<RFALSE>)>>
<ROOM LADDER-TOP
(LOC ROOMS)
(NS 1)
(EW 4)
(GPOS 90)
(PATH 0)
(DESC "Tower Entrance")
(DOWN PER LADDER-DESCEND)
(IN-DIR P?EAST)
(EAST PER TOWER-ENTRY)
(FLAGS GVIEWBIT)
(GLOBAL LADDER GUARDS TOWER TOWER-DOOR)
(ACTION LADDER-TOP-F)>
<ROUTINE LADDER-TOP-F (RARG "AUX" GD)
<COND (<EQUAL? .RARG ,M-LOOK>
<COND (<NOT ,ON-BRACE?>
<TELL
"You are standing at the top of the wooden ladder, at the entrance to
the tower. The ladder itself is bolted to the tower near the base of
the door; for additional support, a metal brace runs horizontally between
the ladder and the southwest post, just a few steps below the top
rung. With a little luck, it would be possible to climb onto the brace."
CR CR>)
(T
<TELL
"You are perched on the metal brace which runs horizontally between
the ladder and the southwest post. From here, you are about two feet
below the level of the tower entrance, and can easily watch the border
guards' movements with little chance of detection." CR CR>)>
<SETG P-WALK-DIR <>>
<PERFORM ,V?EXAMINE ,GUARDS>)
(<AND ,GUARD-WAIT
<EQUAL? .RARG ,M-ENTER>>
<JIGS-UP
"You walk out into the open, as five guards with weapons raised stand
ready. Slowly, you descend the stairs and are taken into custody.">)
(<AND <EQUAL? .RARG ,M-BEG>
<VERB? DROP>
,ON-BRACE?>
<COND (<G? <GETP ,PRSO ,P?SIZE>
</ <SET GD <GUARD-DISTANCE>> 3>>
<TELL
"The " D ,PRSO " drops to the ground, and the sound of its impact
is loud enough to alert the guards.">
<COND (<L? .GD 25>
<JIGS-UP "
One of the guards, close enough to take a good shot, fires, hitting you
in the leg. You drop to the ground, injured, but alive.">)
(T
<TELL
" They start to approach, weapons drawn." CR>)>
<START-GUARD-CHASE>)
(T
<TELL
"The " D ,PRSO " falls to the ground, where it becomes lost in a soft
pile of snow." CR>
<COND (<EQUAL? ,PRSO ,EXPLODING-PEN>
<DE-QUEUE ,I-FUSE-OFF>)>
<REMOVE ,PRSO>)>)
(<AND <EQUAL? .RARG ,M-BEG>
<VERB? WALK>
,ON-BRACE?>
<COND (<EQUAL? ,PRSO ,P?UP>
<PERFORM ,V?DISEMBARK ,BRACE>
<RTRUE>)>
<TELL
"You'd better get off the brace first." CR>
<RTRUE>)>>
<OBJECT BRACE-POST
(LOC LADDER-TOP)
(DESC "post")
(SYNONYM POST POSTS)
(ADJECTIVE SW SOUTHWEST)
(FLAGS NDESCBIT)
(ACTION BRACE-POST-F)>
<ROUTINE BRACE-POST-F ()
<COND (<VERB? EXAMINE>
<PERFORM ,PRSA ,SW-POST>)
(<NOT ,ON-BRACE?>
<TELL
"You can't reach it from here; perhaps if you were on the brace, though,
it would be possible." CR>)
(<EQUAL? ,BRACE-POST ,PRSO>
<PERFORM ,PRSA ,SW-POST ,PRSI>
<RTRUE>)
(T
<PERFORM ,PRSA ,PRSO ,SW-POST>
<RTRUE>)>>
<OBJECT TOWER-DOOR
(LOC LOCAL-GLOBALS)
(DESC "door")
(SYNONYM DOOR)
(ADJECTIVE TOWER METAL GUARD)
(FLAGS NDESCBIT DOORBIT)
(ACTION TOWER-DOOR-F)>
<ROUTINE TOWER-DOOR-F ()
<COND (<AND <VERB? CLOSE>
<FSET? ,PRSO ,OPENBIT>>
<COND (<EQUAL? ,HERE ,TOWER-SOUTH>
<TELL
"The door closes and locks." CR>
<FCLEAR ,PRSO ,OPENBIT>)>)
(<VERB? LOCK>
<TELL
"The door locks automatically when it closes." CR>)
(<AND <VERB? OPEN>
<NOT <FSET? ,PRSO ,OPENBIT>>>
<COND (<EQUAL? ,HERE ,LADDER-TOP>
<TELL
"It's locked; trying to open it would only get you caught." CR>)>)
(<VERB? KNOCK>
<COND (,GUARD-FOOLED
<JIGS-UP
"You rap on the door again. This time, the guard has figured out your
game and is prepared. He swings around, and smashes his automatic weapon into
your head, knocking you to the ground below. You aren't killed, but it sure
feels like it, and a moment later, you are surrounded by unsympathetic
guards.">)
(<IN? ,GUARD-LEG ,HERE>
<TELL
"Are you crazy? The guard is practically on top of you!" CR>)
(,ON-BRACE?
<TELL
"You reach up and rap on the door. A few moments later, you hear the
door open, and the guard calls out \"Who is there?\" He pauses for a moment,
then takes a step down the ladder, his left leg barely missing your cheek."
CR>
<MOVE ,GUARD-LEG ,HERE>
<FSET ,TOWER-DOOR ,OPENBIT>
<RT-QUEUE ,I-GUARD-BACK 40>)
(T
<JIGS-UP
"You knock on the door. A moment later, the door opens, and you are
facing a guard whose automatic weapon is aimed at your head.">)>)>>
<GLOBAL GUARD-FOOLED <>>
<ROUTINE I-GUARD-BACK ()
<COND (<ZERO? <LOC ,GUARD-LEG>>
<RTRUE>)>
<REMOVE ,GUARD-LEG>
<SETG GUARD-FOOLED T>
<FCLEAR ,TOWER-DOOR ,OPENBIT>
<BOLDTELL
"Having satisfied himself that he has been daydreaming, the guard
moves back into the tower, shutting the door behind him.">>
<OBJECT GUARD-LEG
(DESC "guard's leg")
(SYNONYM GUARD LEG)
(ADJECTIVE GUARDS GUARD\'S)
(FLAGS NDESCBIT)
(ACTION GUARD-LEG-F)>
<ROUTINE GUARD-LEG-F ("AUX" GD)
<COND (<VERB? EXAMINE>
<TELL
"There's not much to say, really. It's just a pair of legs in uniform,
presumably attached to a man whom you would prefer not to meet." CR>)
(<OR <VERB? TAKE MOVE PULL>
<HURT? ,PRSO>>
<TELL
"With a short yelp, the guard stumbles,
then falls head-first to the ground with a sickening thud. The guards
on their rounds take notice and start moving toward you. Not knowing
whether or not you are armed, they approach slowly and carefully." CR>
<REMOVE ,GUARD-LEG>
<MOVE ,INJURED-GUARD ,TWR-2>
<COND (<L? <SET GD <GUARD-DISTANCE>> 25>
<CRLF>
<JIGS-UP
"They are close enough to take a few quick shots, one of which hits you
in the leg, causing you to topple off the brace and onto the ground.
You survive, but it's little consolation.">
<RTRUE>)
(T
<START-GUARD-CHASE .GD>)>
<RTRUE>)>>
<ROUTINE START-GUARD-CHASE (GD)
<RT-QUEUE ,I-TOWER <- .GD 25>>
<SETG GUARD-CHASE .GD>
<SETG NODOGS-FLAG T>
<SETG GUARD-CHASE-TIME ,CLOCK-TIME>>
<GLOBAL GUARD-CHASE <>>
<GLOBAL GUARD-CHASE-TIME <>>
<OBJECT INJURED-GUARD
(DESC "crumpled body")
(FDESC
"The crumpled body of the fallen guard is lying on the ground. Beneath
him lies his machine gun.")
(SYNONYM BODY HEAP GUN MACHINE-GUN)
(ADJECTIVE INJURED MACHINE CRUMPLED CONTORTED)
(ACTION INJURED-GUARD-F)>
<ROUTINE INJURED-GUARD-F ()
<TELL
"The guards are drawing closer as you reach the sprawled body." CR CR>
<I-TOWER>
<RTRUE>>
<ROUTINE INT-TIME () <+ ,CLOCK-TIME ,CLOCK-TICKS>>
<ROUTINE I-TOWER ()
<COND (<EQUAL? ,HERE ,LADDER-TOP ,TWR-2 ,BDR-2>
<COND (,G-WATCH
<UPDATE-CHRONOGRAPH 0 T>)>
<HLIGHT ,H-BOLD>
<CRLF>
<TELL
"The guards reach a position within firing range, and fire at you, hitting
you in the back. You ">
<COND (<NOT <EQUAL? ,HERE ,LADDER-TOP>>
<TELL "s">)>
<TELL "tumble to the ground, unconscious, but alive.">
<COND (<EQUAL? ,HERE ,LADDER-TOP>
<SETG HERE ,TWR-2>
<MOVE ,WINNER ,TWR-2>
<STATUS-LINE>)>
<JIGS-UP " ">)
(<EQUAL? ,HERE ,TOWER-SOUTH>
<BOLDTELL
"The guards reach the base of the tower, and fire a few shots. After some
muffled discussion, they call out: \"It is of no use. Come out, or we shall
be forced to kill you! You have 15 seconds to decide!\"">
<RT-QUEUE ,I-CHARGE 15>
<SETG GUARD-WAIT T>)
(T
<HLIGHT ,H-BOLD>
<CRLF>
<JIGS-UP
"All at once, you feel lightheaded and stumble to the ground, overcome
by the cumulative effects of pain, blood loss, cold, and your strenuous
efforts. You are found not long afterwards, and placed under arrest.">)>>
<GLOBAL GUARD-WAIT <>>
<ROUTINE I-CHARGE ()
<HLIGHT ,H-BOLD>
<CRLF>
<TELL
"You can hear the guards charging up the ladder." CR CR>
<COND (<FSET? ,TOWER-DOOR ,OPENBIT>
<JIGS-UP
"A moment later, they burst through the door and take you into custody.">)
(T
<TELL
"They arrive at the door, and find it locked. Angrily, one guard calls
down for the key; a moment later, shots ring out as the frustrated guard
riddles the lock mechanism with holes. You've only got moments before
you are captured!">
<HLIGHT ,H-NORMAL>
<CRLF>
<RT-QUEUE ,I-CATCH 10>)>>
<ROUTINE I-CATCH ()
<HLIGHT ,H-BOLD>
<CRLF>
<JIGS-UP
"The guards burst through the door; a shot is fired - you are hit!">>
<OBJECT BRACE
(LOC LADDER-TOP)
(DESC "brace")
(SYNONYM BRACE)
(ADJECTIVE METAL)
(FLAGS NDESCBIT)
(ACTION BRACE-F)>
<GLOBAL ON-BRACE? <>>
<ROUTINE BRACE-F ()
<COND (<VERB? BOARD CLIMB-ON CLIMB CLIMB-UP>
<COND (,ON-BRACE?
<TELL "You're already on it." CR>)
(T
;<FCLEAR ,HERE ,GVIEWBIT>
<SETG CLOCK-MOVE 8>
<TELL
"You're now standing on the brace, just a few feet below the top rung
of the ladder. The bottom corner of the door is just visible from your
position. A quick check below confirms that you are relatively well hidden
from the pacing guards." CR>)>
<SETG ON-BRACE? T>)
(<VERB? LEAP>
<COND (<NOT ,ON-BRACE?>
<TELL
"You're not on the brace." CR>
<RTRUE>)>
<TELL
"You'd break both of your legs." CR>)
(<VERB? DISEMBARK TAKE-OFF CLIMB-DOWN>
<COND (<NOT ,ON-BRACE?>
<TELL
"You're not on the brace." CR>
<RTRUE>)>
<COND (<IN? ,GUARD-LEG ,HERE>
<JIGS-UP
"As you start to reach the ladder, the guard glimpses you out of the
corner of his eye, and instinctively swings his weapon into your head,
knocking you onto the ground. You survive, fortunately, but you
have been captured.">
<RTRUE>)>
<SETG CLOCK-MOVE 5>
<TELL
"You're now back at the top of the ladder." CR>
<FSET ,HERE ,GVIEWBIT>
<SETG ON-BRACE? <>>
<RTRUE>)>>
<ROOM TWR-2
(LOC ROOMS)
(NS 1)
(EW 4)
(GPOS 90)
(PATH 0)
(DESC "Center Tower")
(UP PER LADDER-CLIMB)
(SE PER GUARD-CATCH)
(SW PER GUARD-CATCH)
(NORTH PER GUARD-MOVE-BDR)
(EAST PER GUARD-CATCH)
(WEST PER GUARD-CATCH)
(SOUTH PER GUARD-MOVE-INF)
(NE PER GUARD-CATCH)
(NW PER GUARD-CATCH)
(GLOBAL LADDER TOWER BORDER-FENCE GUARDS)
(FLAGS GVIEWBIT)
(ACTION TWR-F)>
<ROUTINE TWR-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"You're underneath the middle guard tower. The tower itself is supported
by four metal posts which rise to a height of twenty feet or so. Entrance to
the tower itself is via a wooden ladder running up and to the east at
the southwest corner of the tower
and leading to a closed door. Just a few dozen feet beyond the northern posts,
beyond a seemingly impenetrable border fence, lies freedom." CR CR>
<SETG P-WALK-DIR <>>
<PERFORM ,V?EXAMINE ,GUARDS>)>>
<OBJECT BINOCULARS
(LOC INSIDE-SHED)
(DESC "pair of binoculars")
(SYNONYM PAIR BINOCULARS GLASSES BINOCS)
(FDESC
"Hanging from a hook near the door is a pair of binoculars.")
(ADJECTIVE FIELD)
(FLAGS TAKEBIT TRANSBIT)
(SCENARIO 2)
(ACTION BINOCULARS-F)>
<ROUTINE BINOCULARS-F ()
<COND (<VERB? WEAR>
<TELL
"The strap seems to be gone; you'll just have to carry them." CR>)
(<VERB? EXAMINE LOOK-INSIDE>
<TELL
"They are your typical pair of binoculars with a magnification of perhaps
eight times. If you want to look at something in particular through them,
try saying \"LOOK THROUGH BINOCULARS AT something.\"" CR>)
(<AND <VERB? EXAMINE-THROUGH>
<EQUAL? ,PRSI ,BINOCULARS>>
<COND (<AND <EQUAL? ,PRSO ,FENCE-SIGN>
<AT-NML?>>
<SIGN-READER>
<RTRUE>)
(<AND <EQUAL? ,PRSO ,FENCE>
<AT-NML?>>
<PERFORM ,V?EXAMINE ,FENCE>
<TELL CR
"Through the binoculars, you can make out what the signs say:" CR>
<SIGN-READER>)
(<AND <EQUAL? ,PRSO ,BORDER-FENCE>
<AT-NML?>>
<PERFORM ,V?EXAMINE ,PRSO>
<TELL CR
"It doesn't appear that any more detail has been found than you could
see with your naked eye." CR>)
(<AND <EQUAL? ,PRSO ,GUARDS>
<AT-NML?>>
<TELL
"It's a little easier to see the guards now, but the glare of the
searchlights is still annoying. There are clearly two guards; they
appear to march back and forth between the three towers, meeting in the
middle under the second tower. They are armed with automatic weapons,
and have that distinctive no-nonsense air about them which seems quite
appropriate for their job. A quick scan at the towers themselves reveal
that each has a guard poised ready at his machine gun." CR>)
(<AND <EQUAL? ,PRSO ,TOWER>
<AT-NML?>>
<TELL
"With the " D ,PRSI ", the towers are easily seen. The important detail
seems to be that each tower has a guard inside, with a machine gun trained
on the field that lies before you." CR>
<COND (,TOWER-DESTROYED
<TELL CR
"The bomb you left seems to have quite an impact, as the middle tower
is lying in ruins on the ground." CR>)>
<RTRUE>)
;(<AND <EQUAL? ,PRSO ,SHED>
<EQUAL? ,HERE ,OUTSIDE-SHED>>
<TELL
"It appears to be a small, wooden building; too small, in fact, for a home.
Perhaps it is a utility shed or an outhouse.">
<COND (<IN? ,HUT-MAN ,OUTSIDE-SHED>
<TELL
" There's somebody standing outside, but you don't recognize him.">)>
<CRLF>)
(<ULTIMATELY-IN? ,PRSO ,WINNER>
<TELL
"Perhaps you are becoming near-sighted, but this is surely extreme.
You remind yourself to get a \"company\" physical, if you survive." CR>)
(T
<TELL
"There's nothing more to be seen than with the naked eye." CR>)>)>>
<ROUTINE AT-NML? ()
<OR <EQUAL? ,HERE ,B2 ,C2 ,D2>
<EQUAL? ,HERE ,E2 ,A2>>>
<OBJECT EXPLODING-PEN
(DESC "pen")
(SYNONYM PEN EXPLOSIVE)
(ADJECTIVE EXPLODING)
(FLAGS TAKEBIT OPENBIT CONTBIT SURFACEBIT)
(SCENARIO 2)
(ACTION EXPLODING-PEN-F)>
<CONSTANT SANITY-2
"Your sanity is coming into question. Perhaps it is the blood loss.">
<ROUTINE EXPLODING-PEN-F ()
<COND (<AND <VERB? TIE PUT-ON>
<EQUAL? ,PRSO ,EXPLODING-PEN>>
<COND (<IN? ,PRSI ,GLOBAL-OBJECTS>
<TELL ,SANITY-2 CR>)
(T
<TELL
"The pen won't stick to the " D ,PRSI ,PERIOD-CR>)>)
(<VERB? EXAMINE>
<COND (,BOMB-DUD
<TELL
"It looks like the bomb is a dud." CR>)
(T
<TELL
"Although the pen looks quite ordinary, it's nothing of the sort. It is,
in fact, an explosive device that you've always thought well-suited for a
James Bond movie. When the cap is removed, a small button is revealed.
Each push of the button sets the internal timer for an additional minute
before detonation. When the cap is replaced, the explosive is armed and
nothing can stop it. It's not very powerful, but it can do the job. It
is also highly magnetic, making it easier to place, but more difficult
to handle in the vicinity of wire hangers and the like." CR>)>)
(<AND <VERB? PUT PUT-ON TIE>
<EQUAL? ,PRSI ,EXPLODING-PEN>
<NOT <EQUAL? ,PRSO ,PEN-CAP>>>
<TELL
"The only thing you can put on the pen is the pen cap." CR>)
(<AND <VERB? OPEN>
<IN? ,PEN-CAP ,EXPLODING-PEN>>
<PERFORM ,V?TAKE ,PEN-CAP>
<THIS-IS-IT ,EXPLODING-PEN>
<RTRUE>)
(<VERB? OPEN>
<TELL
"It's as open as it gets." CR>)
(<AND <VERB? CLOSE>
<IN? ,PEN-CAP ,WINNER>>
<PERFORM ,V?PUT-ON ,PEN-CAP ,EXPLODING-PEN>
<THIS-IS-IT ,EXPLODING-PEN>
<RTRUE>)
(<VERB? THROW>
<TELL
"No, it's not the sort of explosive that detonates on impact, though
come to think of it, that wouldn't be bad to have. Just place it where you
want it." CR>)>>