-
Notifications
You must be signed in to change notification settings - Fork 13
/
outside.zil
1303 lines (1212 loc) · 40.9 KB
/
outside.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
"OUTSIDE for ANTHILL (C)1986 by Infocom Inc. All Rights Reserved."
"--- Outside House ---"
<OBJECT HOUSE
(IN LOCAL-GLOBALS)
(DESC "Aunt Hildegarde's house")
(SYNONYM HOUSE HILDEBUD)
(ADJECTIVE AUNT HILDEG)
(FLAGS NARTICLEBIT)
(ACTION HOUSE-F)>
<ROUTINE HOUSE-F ()
<COND (<VERB? EXAMINE>
<TELL
"It's dark, but you can make out a stately two-story home with chimneys
near the east and west ends of the house. Hardly anything has changed since
you were last here several years ago, though you always remember the house
as full of life, and now it is deserted and silent." CR>)
(<VERB? ENTER>
<DO-WALK P?IN>)>>
;"mention by the light of the full moon, your anle to make out its features."
;"Add routine to mysteriously turn on sprinklers if you walk on grass."
<ROOM SOUTH-JUNCTION
(IN ROOMS)
(DESC "South Junction")
(LDESC
"You're standing in front of the house where you spent many of your
summers as a youngster. The old place is not as big as it seemed to
you then, but it is still quite large. Stone pathways wind east and
west around the house, and a larger main walkway leads north.")
(NORTH PER TO-FRONT-PORCH)
(EAST PER TO-&-FROM-SOUTH-JUNCTION)
(WEST PER TO-&-FROM-SOUTH-JUNCTION)
(SOUTH "It's a long way back to town.")
(CAPACITY 2)
(GLOBAL STAIRS HOUSE CHIMNEY)
(FLAGS RLANDBIT OUTDOORSBIT ONBIT BLACK-CAT-BIT)
(THINGS <PSEUDO (COMPASS ROSE COMPASS-ROSE-PSEUDO)>)
(ACTION SOUTH-JUNCTION-F)>
<ROUTINE SOUTH-JUNCTION-F (RARG)
<COND (<EQUAL? .RARG ,M-ENTER>
<SETG SOUTH-JUNCTION-VISITS <+ ,SOUTH-JUNCTION-VISITS 1>>)>>
<ROUTINE TO-FRONT-PORCH ()
<COND (<FSET? ,SOUTH-JUNCTION ,BLACK-CAT-BIT>
<TELL
"As you walk toward the house, a large black cat scurries across the path,
heading toward Johnny Carson's house." CR CR>
<FCLEAR ,SOUTH-JUNCTION ,BLACK-CAT-BIT>
,FRONT-PORCH)
(T
,FRONT-PORCH)>>
<ROUTINE COMPASS-ROSE-PSEUDO ()
<COND (<VERB? EXAMINE>
<TELL
"The compass rose encircles the base of the statue." CR>)>>
<OBJECT BAZOOKA
(IN SOUTH-JUNCTION)
(DESC "bazooka")
(SYNONYM BAZOOKA)
(FLAGS NDESCBIT)
(ACTION BAZOOKA-F)>
<ROUTINE BAZOOKA-F ()
<COND (<VERB? PUSH MOVE TURN>
<PERFORM ,PRSA ,BUCK ,PRSI>
<RTRUE>)
(<VERB? EXAMINE>
<TELL "The bazooka is pointing to the ">
<SAY-BUCK-DIR>
<TELL "." CR>)
(<VERB? SHOOT>
<TELL "It's a stone gun, you geek." CR>)>>
<ROUTINE TO-&-FROM-SOUTH-JUNCTION ("AUX" NEW-ROOM)
<TELL "You follow the stone walkway as it turns ">
<COND (<EQUAL? ,HERE ,SOUTHEAST-JUNCTION>
<SET NEW-ROOM ,SOUTH-JUNCTION>
<TELL "west">)
(<EQUAL? ,HERE ,SOUTHWEST-JUNCTION>
<SET NEW-ROOM ,SOUTH-JUNCTION>
<TELL "east">)
(T
<TELL "north">
<COND (<PRSO? ,P?WEST>
<SET NEW-ROOM ,SOUTHWEST-JUNCTION>)
(T
<SET NEW-ROOM ,SOUTHEAST-JUNCTION>)>)>
<TELL " around the corner of the house, arriving at..." CR CR>
.NEW-ROOM>
<ROOM SOUTHEAST-JUNCTION
(IN ROOMS)
(DESC "Southeast Junction")
(LDESC
"This is the southeastern corner of a large backyard whose main feature
is an elaborate garden. The stone walkway splits in three directions
here: north, along the perimeter of the garden; south, around the side of
the house; and west, where the walkway ends at a couple of steps leading
up." CR)
(NORTH TO NORTHEAST-JUNCTION)
(WEST TO PATIO)
(SOUTH PER TO-&-FROM-SOUTH-JUNCTION)
(CAPACITY 2)
(FLAGS RLANDBIT OUTDOORSBIT ONBIT)
(GLOBAL HOUSE CHIMNEY GARDEN)>
<ROUTINE TO-&-FROM-TOP-LANDING ()
<COND (<FSET? ,NORTHEAST-JUNCTION ,EVERYBIT>
<FCLEAR ,NORTHEAST-JUNCTION ,EVERYBIT>
<TELL
"As you walk along the path you hear footsteps running south along the
stone walkway." CR CR>)
(T
<TELL
"You walk a short distance along the grass path, arriving at..." CR CR>)>
<COND (<EQUAL? ,HERE ,NORTHEAST-JUNCTION>
,TOP-LANDING)
(<EQUAL? ,HERE ,TOP-LANDING>
,NORTHEAST-JUNCTION)>> ;"SEM- 2 conds?"
<ROOM SOUTHWEST-JUNCTION
(IN ROOMS)
(DESC "Southwest Junction")
(LDESC
"This is the southwestern corner of a large backyard whose main feature
is an elaborate garden. The stone walkway splits in three directions
here: north, along the perimeter of the garden; south, around the side
of the house; and east, where the walkway ends at the foot of a couple of
steps." CR)
(NORTH TO NORTHWEST-JUNCTION)
(SOUTH PER TO-&-FROM-SOUTH-JUNCTION)
(EAST TO PATIO)
(CAPACITY 2)
(FLAGS RLANDBIT OUTDOORSBIT ONBIT)
(GLOBAL HOUSE CHIMNEY GARDEN)>
<ROOM PATIO
(IN ROOMS)
(DESC "Patio")
(FLAGS RLANDBIT OUTDOORSBIT ONBIT)
(SOUTH TO GAME-ROOM IF PATIO-DOOR IS OPEN)
(EAST TO SOUTHEAST-JUNCTION)
(WEST TO SOUTHWEST-JUNCTION)
(NORTH TO SOUTH-GARDEN)
(GLOBAL PATIO-DOOR HOUSE CHIMNEY GARDEN)
(ACTION PATIO-F)>
<ROUTINE PATIO-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"This is a large fieldstone patio spanning the entire width of the
back of the house. In the daytime you can look out onto Aunt Hildegarde's
beautiful garden, said to be the envy of the Malibu colony. This is
where Uncle Buddy and Aunt Hildegarde would often entertain.~
~
Standing here you remember the time at one of their parties when you
swiped one of Uncle Buddy's big Hollywood cigars and smoked it, then got
sick on a rose bush in the garden. You snicker a little bit thinking
about that poor rose bush now and the goofy things you did as a child.
To the north a stone pathway leads to the garden. Steps lead down off to
the east and west, and there is a">
<COND (<FSET? ,PATIO-DOOR ,OPENBIT>
<TELL "n open">)
(T
<TELL " closed">)>
<TELL " door to the south.">)>>
;"ADD HACK FOR SOMEONE LOOKING AT GARDEN AT NIGHT"
<OBJECT PATIO-DOOR
(IN LOCAL-GLOBALS)
(DESC "patio door")
(SYNONYM DOOR)
(ADJECTIVE PATIO)
(FLAGS DOORBIT NDESCBIT LOCKEDBIT)>
<OBJECT GARDEN
(IN LOCAL-GLOBALS)
(DESC "Aunt Hildegarde's garden")
(SYNONYM GARDEN)
(FLAGS NARTICLEBIT)
(ACTION GARDEN-F)>
<ROUTINE GARDEN-F ()
<COND (<VERB? EXAMINE>
<TELL "This garden was Aunt Hildegarde's pride and joy. ">
<COND (<NOT <G? ,MOVES 535>>
<TELL "By the moonlight you can see the outline of">)
(T
<TELL "You can see">)>
<TELL
" dozens of fancy varieties of flowers and shrubs. Several small
trees dot the garden, giving shade during the day to the more delicate
blossoms. Stone walkways lead through the garden. A stone wall surrounds
the garden with entrances north and south." CR>)
(<VERB? ENTER>
<TELL
"You can only enter the garden from the north or south of the garden." CR>)>>
<OBJECT GARDEN-WALLS
(IN LOCAL-GLOBALS)
(DESC "stone wall")
(SYNONYM WALL)
(ADJECTIVE STONE GARDEN)
(FLAGS NDESCBIT)
(ACTION GARDEN-WALLS-F)>
<ROUTINE GARDEN-WALLS-F ()
<COND (<VERB? EXAMINE>
<TELL
"The stone wall surrounds the entire garden, with entrances to the north and
south of the garden." CR>)
(<VERB? CLIMB CLIMB-ON CLIMB-UP CLIMB-OVER>
<TELL
"Aunt Hildegarde would paddle your fanny if she saw you do that." CR>)>>
<ROOM SOUTH-GARDEN
(IN ROOMS)
(DESC "Garden, South")
(LDESC
"You're standing on a stone walkway in Aunt Hildegarde's much envied
garden where she would spend hours tending to her flowers, bushes and
trees. The garden was off limits to you as a child because of an
incident one summer when you and Cousin Herman were playing in the
garden. You suggested pretending to be wild African animals and climbed
a tree and began to screech as if a baboon while Cousin Herman ran off
toward the roses shouting something about being a rhinoceros.~
~
After howling until your throat felt like you had puffed on one of Uncle
Buddy's Hollywood cigars, you went to find Cousin Herman. When you
arrived you couldn't believe your eyes -- Cousin Herman had pulled all
the thorns off of all of Aunt Hildegarde's rose bushes in a quest to
find the biggest thorn possible so he could be a rhino. Of course when
Aunt Hildegarde saw her naked rose bushes, Cousin Herman blamed it all on
you. The walkway leads south, northeast and northwest.")
(SOUTH TO PATIO)
(NORTH "You bounce off a dwarf fig tree.")
(NE TO EAST-GARDEN)
(NW TO WEST-GARDEN)
(CAPACITY 2)
(FLAGS RLANDBIT ONBIT OUTDOORSBIT)
(GLOBAL HOUSE CHIMNEY GARDEN GARDEN-WALLS)
(THINGS <PSEUDO (<> TREES FLORAL-PSEUDO)
(<> TREE FLORAL-PSEUDO)
(<> FLOWER FLORAL-PSEUDO)>)>
<ROOM EAST-GARDEN
(IN ROOMS)
(DESC "Garden, East")
(LDESC
"You are in the overpoweringly fragrant rose bush section of the garden.
As you admire the roses you notice one somewhat sickly rose bush.
Something about the sight of this particular rose bush makes you feel a
bit queasy. The stone walkway leads northwest and southwest.")
(NW TO NORTH-GARDEN)
(SW TO SOUTH-GARDEN)
(EAST "After a brief altercation with a large rose bush you turn back.")
(WEST "After a brief altercation with a large rose bush you turn back.")
(CAPACITY 2)
(FLAGS RLANDBIT ONBIT OUTDOORSBIT)
(GLOBAL HOUSE CHIMNEY GARDEN GARDEN-WALLS)
(THINGS <PSEUDO (ROSE BUSH ROSE-BUSH-PSEUDO)
(<> ROSE ROSE-BUSH-PSEUDO)
(<> ROSES FLORAL-PSEUDO)
(<> TREES FLORAL-PSEUDO)
(<> TREE FLORAL-PSEUDO)
(<> FLOWER FLORAL-PSEUDO)>)>
<ROUTINE ROSE-BUSH-PSEUDO ()
<COND (<VERB? EXAMINE>
<TELL
"You remember this rose bush from many summers ago. It's the one you got
sick on after smoking one of Uncle Buddy's cigars." CR>)
(<VERB? SMELL>
<TELL
"No doubt the fragrance would be sweeter had you not thrown-up on it
many years ago." CR>)
(<VERB? WATER>
<TELL
"Driven by guilt, you splash some water on the bush. It looks better
already." CR>)>>
<ROOM WEST-GARDEN
(IN ROOMS)
(DESC "Garden, West")
(LDESC
"You're standing on a stone walkway in the tulip section of the garden.
The walkway leads northeast and southeast.")
(NE TO NORTH-GARDEN)
(SE TO SOUTH-GARDEN)
(EAST "You couldn't bear to step on the tulips.")
(WEST "You couldn't bear to step on the tulips.")
(NORTH "You couldn't bear to step on the tulips.")
(SOUTH "You couldn't bear to step on the tulips.")
(CAPACITY 2)
(FLAGS RLANDBIT ONBIT OUTDOORSBIT)
(GLOBAL HOUSE CHIMNEY GARDEN GARDEN-WALLS)
(THINGS <PSEUDO (<> TULIP FLORAL-PSEUDO)
(<> TULIPS FLORAL-PSEUDO)
(<> TREES FLORAL-PSEUDO)
(<> TREE FLORAL-PSEUDO)
(<> FLOWER FLORAL-PSEUDO)>)>
<ROOM NORTH-GARDEN
(IN ROOMS)
(DESC "Garden, North")
(LDESC
"You are in the orchid section of the garden. Tender orchid petals of
every color surround a small pond here. The stone walkway leads north,
southeast and southwest.")
(NORTH TO ENTRANCE-TO-MAZE)
(SOUTH "You bounce off a dwarf fig tree.")
(SE TO EAST-GARDEN)
(SW TO WEST-GARDEN)
(CAPACITY 2)
(FLAGS RLANDBIT ONBIT OUTDOORSBIT)
(GLOBAL HOUSE CHIMNEY GARDEN WATER GARDEN-WALLS)
(THINGS <PSEUDO (<> TREES FLORAL-PSEUDO)
(<> TREE FLORAL-PSEUDO)
(<> FLOWER FLORAL-PSEUDO)>)>
<OBJECT ORCHIDS
(IN NORTH-GARDEN)
(DESC "orchids")
(SYNONYM ORCHID)
(FLAGS NDESCBIT)
(ACTION FLORAL-PSEUDO)>
<ROUTINE FLORAL-PSEUDO ()
<COND (<VERB? EXAMINE>
<TELL
"It's the lovely flora you would expect in Aunt Hildegarde's
reknowned garden." CR>)
(<VERB? SMELL>
<TELL "Hmmm. What a lovely scent." CR>)>>
<OBJECT POND
(IN NORTH-GARDEN)
(DESC "small pond")
(SYNONYM POND)
(ADJECTIVE SMALL)
(CAPACITY 200)
(FLAGS OPENBIT CONTBIT NDESCBIT SEARCHBIT)
(ACTION POND-F)>
<ROUTINE POND-F ()
<COND (<AND <VERB? PUT>
<PRSI? ,POND>>
<TELL "You drop" T ,PRSO " in" T ,POND>
<COND (<G? <GETP ,PRSO ,P?SIZE> 5>
<TELL " with a splash">)>
<TELL ".">
<MOVE ,PRSO ,POND>
<ALL-WET ,PRSO>
<BLOW-OUT-ALL-IN ,PRSO ", as it hits the water">
<COND (<AND <PRSO? ,BUCKET>
<FIRST? ,PRSO>>
<ROB ,BUCKET ,POND>
<TELL
" The contents of the bucket sink to the bottom of the shallow pond.">)>
<COND (<AND <PRSO? ,FLASHLIGHT>
<FSET? ,FLASHLIGHT ,ONBIT>>
<FCLEAR ,FLASHLIGHT ,ONBIT>
<FSET ,FLASHLIGHT ,WETBIT>
<TELL " The flashlight goes out.">)>
<CRLF>
;<COND (<PRSO? ,BUCKET>
<MOVE ,PORTABLE-WATER ,BUCKET>
<QUEUE I-DRIP 1>)>
<RTRUE>)
(<VERB? ENTER>
<TELL
"How soon they forget. Don't you remember the summer Aunt Hildegarde caught
you wading in the pond and paddled your behind?" CR>)
(<VERB? OPEN CLOSE>
<CANT-OPEN-CLOSE>)>>
<ROUTINE BLOW-OUT-ALL-IN (OBJ "OPTIONAL" (STR <>))
<COND (<NOT .STR>
<SET STR "">)>
<REPEAT ()
<COND (<NOT .OBJ> <RETURN>)
(T
<COND (<FSET? .OBJ ,FLAMEBIT>
<FCLEAR .OBJ ,FLAMEBIT>
<FCLEAR .OBJ ,ONBIT>
<TELL " The " D .OBJ " goes out" .STR ".">
<COND (<EQUAL? .OBJ ,RED-CANDLE>
<STOP-RED-BURNING>)
(<EQUAL? .OBJ ,WHITE-CANDLE>
<STOP-WHITE-BURNING>)
(<EQUAL? .OBJ ,BLUE-CANDLE>
<STOP-BLUE-BURNING>)
(<EQUAL? .OBJ ,GREEN-MATCH ,RED-MATCH>
<DEQUEUE I-MATCH-BURN>)>)>
<COND (<FIRST? .OBJ>
<BLOW-OUT-ALL-IN <FIRST? .OBJ> .STR>)>
<SET OBJ <NEXT? .OBJ>>)>>>
<ROOM NORTHWEST-JUNCTION
(IN ROOMS)
(DESC "Northwest Junction")
(LDESC
"In this corner of the backyard you can make out the enormous hedge,
which is part of the estate's hedge maze. The stone walkway splits in
three directions here: north, along the dark and towering hedge; south,
past the fragrant and inviting garden; and east, where the walkway cuts
a straight and narrow path between the hedge and the garden." CR)
(NORTH PER TO-&-FROM-CANNON)
(SOUTH TO SOUTHWEST-JUNCTION)
(EAST TO ENTRANCE-TO-MAZE)
(CAPACITY 2)
(FLAGS RLANDBIT OUTDOORSBIT ONBIT)
(GLOBAL HOUSE CHIMNEY GARDEN HEDGE-MAZE-OBJ GARDEN-WALLS)>
<ROOM NORTHEAST-JUNCTION
(IN ROOMS)
(DESC "Northeast Junction")
(LDESC
"In this corner of the backyard you can make out the enormous hedge,
which is part of the estate's hedge maze. The stone walkway splits in
three directions here: north, along the dark and towering hedge; south,
past the fragrant and inviting garden; and west, where the walkway cuts
a straight and narrow path between the hedge and the garden. A slightly
worn path in the grass heads east.")
(NORTH PER TO-&-FROM-CANNON)
(SOUTH TO SOUTHEAST-JUNCTION)
(WEST TO ENTRANCE-TO-MAZE)
(EAST PER TO-&-FROM-TOP-LANDING)
(CAPACITY 2)
(FLAGS RLANDBIT OUTDOORSBIT ONBIT EVERYBIT) ;"for the footsteps"
(GLOBAL HOUSE CHIMNEY GARDEN HEDGE-MAZE-OBJ GARDEN-WALLS)>
<ROUTINE TO-&-FROM-CANNON ("AUX" NEW-ROOM)
<TELL
"You follow the walkway as it turns ">
<COND (<EQUAL? ,HERE ,NORTHWEST-JUNCTION>
<SET NEW-ROOM ,CANNON-EMPLACEMENT>
<TELL "east">)
(<EQUAL? ,HERE ,NORTHEAST-JUNCTION>
<SET NEW-ROOM ,CANNON-EMPLACEMENT>
<TELL "west">)
(T
<TELL "south">
<COND (<PRSO? ,P?WEST>
<SET NEW-ROOM ,NORTHWEST-JUNCTION>)
(T
<SET NEW-ROOM ,NORTHEAST-JUNCTION>)>)>
<TELL " around the hedge leading to..." CR CR>
.NEW-ROOM>
<ROOM CANNON-EMPLACEMENT
(IN ROOMS)
(DESC "Cannon Emplacement")
(EAST PER TO-&-FROM-CANNON)
(WEST PER TO-&-FROM-CANNON)
(DOWN PER TO-CLIFF)
(NORTH PER TO-CLIFF)
(GLOBAL WATER)
(FLAGS RLANDBIT OUTDOORSBIT ONBIT)
(ACTION CANNON-EMPLACEMENT-F)>
<ROUTINE CANNON-EMPLACEMENT-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"This is a cannon emplacement complete with a Civil War-style cannon and
a neatly stacked pyramid of cannon balls. During the day this area
affords a spectacular view of the coastline. Stone walkways lead east
and west, and a steep path leads down.">)>>
<ROUTINE TO-CLIFF ()
<COND (<FSET? ,SKIS ,WORNBIT>
<JIGS-UP
"You ski down the steep path, unable to stop at the cliff. You sail off the
cliff into the air, catching a very brief glimpse of Linda Ronstadt's beach
house, then plummet to the rocks below.">)
(T
<TELL
"You attempt to walk down, but end up sliding most of the way to a cliff
below." CR CR>
<RETURN ,CLIFF>)>>
<ROOM CLIFF
(IN ROOMS)
(DESC "Cliff")
(FLAGS RLANDBIT OUTDOORSBIT ONBIT)
(GLOBAL HATCH HATCH-HOLE)
(UP PER TO-CANNON-EMPLACEMENT)
(SOUTH PER TO-CANNON-EMPLACEMENT)
(DOWN PER TO-&-FROM-BOMB-SHELTER)
(ACTION CLIFF-F)
(THINGS <PSEUDO (<> CLIFF CLIFF-PSEUDO)>)>
<ROUTINE CLIFF-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"This cliff affords the same spectacular view as from the cannon
emplacement above. Far below you and stretching east, are the white
sands of a beach">
<COND (<NOT <G? ,MOVES 535>>
<TELL ", illuminated by the moon's glow">)>
<TELL
". You can hear the faint sound of waves lapping at the shore. Nearby in
the ground is a">
<COND (<FSET? ,HATCH ,OPENBIT>
<TELL
"n open hatch, forming a hole which leads down.">)
(T
<TELL " closed hatch.">)>)>>
<ROUTINE CLIFF-PSEUDO ()
<COND (<VERB? LEAP>
<JIGS-UP
"You jump off the cliff and fall to your death, just as you would expect
from an Infocom story.">)>>
<ROUTINE TO-CANNON-EMPLACEMENT ()
<TELL "You slip and slide in the loose rock, ">
<COND (<ULTIMATELY-IN? ,LADDER>
<TELL
"unable to climb up the cliff because of the weight of the ladder." CR>
<RFALSE>)
(T
<TELL
"but manage to make your way up to the cannon emplacement." CR CR>
<RETURN ,CANNON-EMPLACEMENT>)>>
<ROUTINE TO-&-FROM-BOMB-SHELTER ()
<COND (<NOT <FSET? ,HATCH ,OPENBIT>>
<TELL ,YOU-CANT "go through the closed hatch." CR>
<RFALSE>)
(<AND <FSET? ,HATCH ,OPENBIT>
<FSET? ,SKIS ,WORNBIT>>
<TELL
"You can't fit through the opening wearing the skis." CR>
<RFALSE>)
(<FSET? ,LADDER ,HUNG-BIT>
<COND (<EQUAL? ,HERE ,BOMB-SHELTER>
<TELL "You climb up the ladder to the cliff." CR CR>
<MOVE ,LADDER ,CLIFF>
<RETURN ,CLIFF>)
(T
<TELL
"You climb down the ladder to the bomb shelter." CR CR>
<MOVE ,LADDER ,BOMB-SHELTER>
<RETURN ,BOMB-SHELTER>)>)
;" no ladder " (T
<COND (<EQUAL? ,HERE ,BOMB-SHELTER>
<TELL
"You'll have to figure that out for yourself." CR>
<RFALSE>)
(T
<TELL
"You drop into the hole, managing to land on your feet." CR CR>
<RETURN ,BOMB-SHELTER>)>)>>
<OBJECT LADDER
(IN CLIFF)
(DESC "ladder")
(FDESC "There is an unusual ladder lying on the ground here.")
(SYNONYM LADDER)
(ADJECTIVE HEAVY METAL)
(FLAGS TAKEBIT)
(SIZE 90)
(ACTION LADDER-F)>
<ROUTINE LADDER-F ()
<COND (<AND <EQUAL? ,HERE ,CLIFF>
<FSET? ,LADDER ,HUNG-BIT>
<NOT <FSET? ,HATCH ,OPENBIT>>>
<CANT-SEE-ANY ,LADDER>
<RTRUE>)
(<VERB? EXAMINE>
<TELL
"This straight ladder is made of heavy-duty steel bars. It resembles
a ladder you might find on a fire escape." CR>)
;(<AND <VERB? PUT-ON TIE HANG-UP> ;"tie = attach, hook"
<PRSI? ,HOOKS>>
<TELL "You hang the ladder from" TR ,HOOKS>
<MOVE ,LADDER ,HERE>
<FSET ,LADDER ,NDESCBIT>
<FSET ,LADDER ,HUNG-BIT>)
(<AND <VERB? TAKE UNTIE> ;"unhook detach"
<FSET? ,LADDER ,HUNG-BIT>>
<COND (<EQUAL? ,HERE ,CLIFF>
<TELL "It's too heavy to lift out of the hole." CR>)
(T
<COND (<NOT <ITAKE>>
<RTRUE>)
(T
<FCLEAR ,LADDER ,HUNG-BIT>
<TELL "Taken." CR>)>)>)
(<AND <VERB? HANG-UP>
<EQUAL? ,HERE ,BOMB-SHELTER>
<NOT ,PRSI>>
<PERFORM ,V?HANG-UP ,LADDER ,HOOKS>
<RTRUE>)
(<VERB? CLIMB-UP CLIMB CLIMB-DOWN>
<COND (<FSET? ,LADDER ,HUNG-BIT>
<COND (<EQUAL? ,HERE ,CLIFF>
<COND (<VERB? CLIMB-UP>
<TELL
"The ladder only leads down, through the open hatch." CR>
<RTRUE>)
(T
<DO-WALK ,P?DOWN>)>)
(T
<COND (<VERB? CLIMB-DOWN>
<TELL
"The ladder only leads up, through the open hatch." CR>
<RTRUE>)
(T
<DO-WALK ,P?UP>)>)>)
(<ULTIMATELY-IN? ,LADDER>
<TELL "You're holding the ladder!" CR>)
(T
<TELL
"You can't climb a ladder that's lying down." CR>)>)>>
<OBJECT HOOKS
(IN BOMB-SHELTER)
(DESC "pair of metal hooks")
(SYNONYM HOOK HOOKS)
(ADJECTIVE METAL PAIR HEAVY)
(FLAGS NDESCBIT)
(ACTION HOOKS-F)>
<ROUTINE HOOKS-F ()
<COND (<VERB? HANG-UP PUT-ON TIE> ;"tie = attach, hook"
<COND (<PRSO? ,LADDER>
<TELL "You hang the ladder from" TR ,HOOKS>
<MOVE ,LADDER ,HERE>
<FSET ,LADDER ,NDESCBIT>
<FSET ,LADDER ,HUNG-BIT>)
(T
<TELL
"You can't reach the hooks." CR>)>)>>
<OBJECT HATCH-HOLE
(IN LOCAL-GLOBALS)
(DESC "hole")
(SYNONYM HOLE)
(FLAGS NDESCBIT INVISIBLE) ;"invisible until hatch is opened"
(ACTION HATCH-HOLE-F)>
<ROUTINE HATCH-HOLE-F ()
<COND (<VERB? EXAMINE LOOK-INSIDE>
<TELL
"The hole is about the size of a manhole">
<COND (<EQUAL? ,HERE ,CLIFF>
<TELL ". The " D ,HATCH-HOLE " descends down into ">
<COND (<LIT? ,BOMB-SHELTER>
<TELL "the bomb shelter">)
(T
<TELL "darkness">)>
<COND (<FSET? ,LADDER ,HUNG-BIT>
<TELL
". A " D ,LADDER " in the hole leads down">)>)>
<TELL "." CR>)
(<VERB? ENTER>
<COND (<EQUAL? ,HERE ,CLIFF>
<DO-WALK ,P?DOWN>)
(T
<TELL "You can't reach it." CR>)>)
(<AND <VERB? PUT>
<EQUAL? ,HERE ,CLIFF>
<PRSI? ,HATCH-HOLE>>
<TELL
"You drop" T ,PRSO " in" T ,HATCH-HOLE
" and a second later hear it hit the ground." CR>
<COND (<AND <PRSO? ,RED-CANDLE ,WHITE-CANDLE ,BLUE-CANDLE>
<FSET? ,PRSO ,FLAMEBIT>>
<BLOW-OUT-CANDLE ,PRSO>)>
<COND (<OR <AND <PRSO? ,FINCH>
<NOT <FSET? ,FINCH ,BROKEN-BIT>>>
<AND <ULTIMATELY-IN? ,FINCH ,PRSO>
<NOT <FSET? ,FINCH ,BROKEN-BIT>>>>
<BREAK-FINCH T>)>
<MOVE ,PRSO ,BOMB-SHELTER>
<RTRUE>)>>
;"old hole"
;<ROUTINE HOLE-F ()
<COND (<VERB? EXAMINE LOOK-INSIDE>
<TELL
"The hole is about the size of a manhole. ">
<COND (<NOT <FSET? ,HATCH ,OPENBIT>>
<TELL
"At the bottom of the hole is a steel plate">) ;"underside"
(T
<TELL "The " D ,HATCH-HOLE " ">
<COND (<LIT? ,BOMB-SHELTER>
<TELL "leads down to the bomb shelter">)
(T
<TELL "descends into darkness">)>
<COND (<FSET? ,LADDER ,HUNG-BIT>
<TELL
". A " D ,LADDER " in the hole leads down">)>)>
<TELL "." CR>)>>
"--- Cannon ---"
<OBJECT CANNON-BALL
(IN PILE-OF-BALLS)
(DESC "cannon ball")
(SYNONYM BALL)
(ADJECTIVE CANNON TOP)
(FLAGS TAKEBIT NDESCBIT)
(GENERIC GENERIC-BALL-F)
(SIZE 10) ;"size is related to cannon capacity"
;(ACTION CANNON-BALL-F)>
;<ROUTINE CANNON-BALL-F ()
<COND ()>>
<OBJECT PILE-OF-BALLS
(IN CANNON-EMPLACEMENT)
(DESC "pile of cannon balls")
(SYNONYM BALL BALLS PILE)
(ADJECTIVE CANNON PILE STACK)
(FLAGS NDESCBIT SURFACEBIT CONTBIT SEARCHBIT OPENBIT)
(CAPACITY 10)
(GENERIC GENERIC-BALL-F)
(ACTION PILE-OF-BALLS-F)>
<ROUTINE PILE-OF-BALLS-F ()
<COND (<VERB? OPEN CLOSE>
<CANT-OPEN-CLOSE>)
(<VERB? EXAMINE TAKE>
<COND (<OR <IN? ,CANNON-BALL ,PILE-OF-BALLS>
<NOT <FIRST? ,PILE-OF-BALLS>>>
<TELL
"The pile of cannon balls appears to be strictly ornamental. All of the
balls are welded together">
<COND (<IN? ,CANNON-BALL ,PILE-OF-BALLS>
<TELL
", except for the ball on the top of the pile">)>
<TELL "." CR>)
(T
<RFALSE>)>)
(<VERB? LOOK-UNDER>
<TELL
,YOU-CANT "look under" TR ,PILE-OF-BALLS>)
;(<VERB? PUT-ON>
<COND (<FIRST? ,PILE-OF-BALLS>
<TELL "The ">
<DESCRIBE-REST ,PILE-OF-BALLS>
<TELL " is already on" TR ,PILE-OF-BALLS>)
(T
<RFALSE>)>)>>
<ROUTINE GENERIC-BALL-F ()
,CANNON-BALL>
<OBJECT FUSE
(IN CANNON-EMPLACEMENT)
(DESC "fuse")
(SYNONYM FUSE)
(ADJECTIVE CANNON)
(FLAGS NDESCBIT BURNBIT)
(ACTION FUSE-F)>
<ROUTINE FUSE-F ("AUX" OBJ FLAME)
<COND (<VERB? BURN LAMP-ON>
<COND (<SET-FLAME-SOURCE>
<RTRUE>)
(<NOT <FSET? ,PRSI ,FLAMEBIT>>
<COND (<FSET? ,PRSI ,BURNBIT>
<TELL
"You'll have to light" T ,PRSI " first." CR>)
(ELSE
<TELL
"You can't light" T ,PRSO " with" AR ,PRSI>)>)
(T ;"prsi flamebit is set"
<REMOVE ,FUSE>
<SET OBJ <FIRST? ,CANNON>>
<TELL
"You touch the flame to" T ,FUSE " and it sizzles.
A second later" T ,CANNON " fires">
<COND (<ZERO? .OBJ>
<TELL " with a bang." CR>)
(T
;<TELL ",">
<COND (<IN? ,CANNON-BALL ,CANNON>
<FSET ,CANNON ,CANNON-MOVED-BIT>
<REMOVE ,CANNON-BALL>
<TELL
", pushing it back a couple of feet. ">)>
<COND (<IN? ,FLASHLIGHT,CANNON>
<FCLEAR ,FLASHLIGHT ,ONBIT>)>
<COND (<IN? ,RED-CANDLE ,CANNON>
<FCLEAR ,RED-CANDLE ,FLAMEBIT>
<FCLEAR ,RED-CANDLE ,ONBIT>
<STOP-RED-BURNING>)>
<COND (<IN? ,WHITE-CANDLE ,CANNON>
<FCLEAR ,WHITE-CANDLE ,FLAMEBIT>
<FCLEAR ,WHITE-CANDLE ,ONBIT>
<STOP-WHITE-BURNING>)>
<COND (<IN? ,BLUE-CANDLE ,CANNON>
<FCLEAR ,BLUE-CANDLE ,FLAMEBIT>
<FCLEAR ,BLUE-CANDLE ,ONBIT>
<STOP-BLUE-BURNING>)>
<COND (<FSET? ,CANNON ,CANNON-MOVED-BIT>
<TELL "The " D ,CANNON-BALL>
<COND (<FIRST? ,CANNON>
<TELL " and pieces of">
<CLOSE-ALL-IN ,CANNON>
<DESCRIBE-CONTENTS ,CANNON -1>)>)
(<FIRST? ,CANNON>
<TELL " and pieces of">
<CLOSE-ALL-IN ,CANNON>
<DESCRIBE-CONTENTS ,CANNON -1>)>
<TELL " fl">
<COND (<FIRST? ,CANNON>
<TELL "y">)
(T
<TELL "ies">)>
<TELL
" from" T ,CANNON "'s barrel out to sea." CR>
<MOVE-ALL ,CANNON>)>)>)
(<VERB? TAKE>
<TELL "It's stuck." CR>)>>
<ROUTINE CLOSE-ALL-IN (CONT "AUX" OBJ)
<SET OBJ <FIRST? .CONT>>
<REPEAT ()
<FCLEAR .OBJ ,OPENBIT>
<SET OBJ <NEXT? .OBJ>>
<COND (<NOT .OBJ>
<RETURN>)>>>
<ROUTINE SET-FLAME-SOURCE ("AUX" FLAME)
<COND (,PRSI
<RFALSE>)
(<SET FLAME <FIND-IN ,PLAYER ,FLAMEBIT>>
<SETG PRSI .FLAME>
<TELL "[with" T .FLAME "]" CR>
<RFALSE>)
(<EQUAL? ,HERE ,BEACH>
<SETG PRSI ,FIRE>
<TELL "[with the fire]" CR>
<RFALSE>)
(T
<TELL "You have nothing to light" T ,PRSO " with." CR>)>>
<OBJECT CANNON
(IN CANNON-EMPLACEMENT)
(DESC "cannon")
(SYNONYM CANNON WHEEL)
;(ADJECTIVE MINATURE)
(FLAGS CONTBIT OPENBIT TRYTAKEBIT NDESCBIT SEARCHBIT)
(CAPACITY 30)
(ACTION CANNON-F)>
<ROUTINE CANNON-F ()
<COND (<AND <VERB? TAKE PUSH PUSH-TO PULL MOVE TURN RAISE LOWER
EMPTY>
<PRSO? ,CANNON>>
<TELL "The cannon is too heavy for you to move." CR>)
(<VERB? SHOOT>
<TELL "Try lighting the fuse!" CR>)
;(<AND <VERB? POINT>
<EQUAL? ,PRSO ,CANNON>>
<TELL "It's already aimed." CR>)
(<VERB? EXAMINE>
<TELL
"It's a replica Civil War " D ,CANNON " pointing out to sea. ">
<COND (<IN? ,FUSE ,CANNON-EMPLACEMENT>
<TELL
"There is" A ,FUSE " sticking up from the cannon. ">)>
<COND (<NOT <FSET? ,CANNON ,CANNON-MOVED-BIT>>
<TELL
"One of" T ,CANNON "'s wheels is on top of a small compartment.">)
(T
<TELL
"Right next to" T ,CANNON " is" A ,COMPARTMENT ".">)>
<TELL
" The " D ,CANNON " was used in Uncle Buddy's production of \"Dracula Meets
the Confederacy.\" Uncle Buddy said he always kept it loaded in case those
big Hollywood studio types came around." CR>)
(<VERB? BURN LAMP-ON>
<PERFORM ,V?BURN ,FUSE>
<RTRUE>)
;(<VERB? LOOK-INSIDE>
<TELL "You see ">
;"You see what might be a charge, after all Uncle Buddy did say he always kept it loaded in case those Hollywood types came round."
<COND (<FIRST? ,CANNON>
<COND (<AND <IN? ,FUSE ,CANNON>
<NEXT? ,FUSE>>
<DESCRIBE-CONTENTS ,CANNON -1>)
(<NOT <IN? ,FUSE ,CANNON>>
<DESCRIBE-CONTENTS ,CANNON -1>)
(T
<TELL
"a wad tightly packed, no doubt holding a charge in place">)>)
(T
<TELL "an empty " D ,CANNON " barrel">)>
<TELL "." CR>)
(<AND <VERB? PUT>
<PRSO? ,BUCKET>>
<TELL "It won't fit in the cannon." CR>)
(<VERB? OPEN CLOSE>
<CANT-OPEN-CLOSE>)>>
<OBJECT COMPARTMENT
(IN CANNON-EMPLACEMENT)
(DESC "small compartment")
(SYNONYM COMPAR)
(ADJECTIVE SMALL)
(FLAGS NDESCBIT CONTBIT SEARCHBIT)
(CAPACITY 11)
(ACTION COMPARTMENT-F)>
<ROUTINE COMPARTMENT-F ()
<COND (<AND <VERB? OPEN>
<NOT <FSET? ,CANNON ,CANNON-MOVED-BIT>>>
<PERFORM ,V?EXAMINE ,COMPARTMENT>
<RTRUE>)
(<AND <VERB? EXAMINE>
<NOT <FSET? ,CANNON ,CANNON-MOVED-BIT>>>
<TELL
"One of" T ,CANNON "'s wheels is on" TR ,COMPARTMENT>)>>
<ROUTINE MOVE-OBJ-DOWN ()
<COND (<FSET? ,PRSO ,TAKEBIT>
<TELL "You ">
<PRINTB ,P-PRSA-WORD>
<TELL " the " D ,PRSO " and it tumbles down the stairs.">
<COND (<EQUAL? ,UPSTAIRS-HALL-MIDDLE ,HERE>
<MOVE ,PRSO ,FOYER>)
(<EQUAL? ,FRONT-PORCH ,HERE>
<MOVE ,PRSO ,SOUTH-JUNCTION>)
(T
<MOVE ,PRSO ,CELLAR>)>)>>
<ROOM FRONT-PORCH
(IN ROOMS)
(DESC "Front Porch")
(LDESC
"You're standing on the front porch of the house. Next to the front door
is a regulation mailbox endorsed by Buck Palace. Beneath the mailbox is
a doorbell once rung by Sonny Tufts. To the south is a walkway.")
(SOUTH TO SOUTH-JUNCTION)
(IN TO FOYER IF OAK-DOOR IS OPEN)
(NORTH TO FOYER IF OAK-DOOR IS OPEN)
(FLAGS RLANDBIT OUTDOORSBIT ONBIT)
(GLOBAL OAK-DOOR HOUSE CHIMNEY)>
<OBJECT DOOR-BELL
(IN FRONT-PORCH)
(DESC "doorbell")
(SYNONYM BELL CHIME BUZZER DOORBELL)
(ADJECTIVE DOOR)
(FLAGS NDESCBIT)
(ACTION DOOR-BELL-F)>
<ROUTINE DOOR-BELL-F ()
<COND (<VERB? PUSH>
<TELL
"The " D ,DOOR-BELL " plays a tune from one of Uncle Buddy's films. You
recognize the " <PICK-ONE ,DOOR-BELL-TUNES> ".\"" CR>)>>
<GLOBAL DOOR-BELL-TUNES
<LTABLE 0
"love theme from \"Chainsaw Chop Suey"
"title song from \"10 1/2 Little Indians"
"song from \"It Came From the Neighbor's House"
"title track from \"Buddy Burbank's Three Minute Hollywood Workout">>
<OBJECT MAILBOX
(IN FRONT-PORCH)
(DESC "Buck Palace-endorsed, regulation mailbox")
(SYNONYM BOX MAILBOX)
(ADJECTIVE MAIL)
(FLAGS NDESCBIT SEARCHBIT CONTBIT)
(CAPACITY 11)>
<OBJECT OAK-DOOR
(IN LOCAL-GLOBALS)
(DESC "oak door")
(SYNONYM DOOR)
(ADJECTIVE OAK FRONT)
(FLAGS DOORBIT NDESCBIT LOCKEDBIT)>
"--- Beach Stairs ---"
<OBJECT SKIS
(IN CLOSET)
(DESC "pair of skis")
(SYNONYM SKIS)
(ADJECTIVE PAIR DOWNHILL)
(FLAGS TAKEBIT WEARBIT)
(SIZE 25)