-
Notifications
You must be signed in to change notification settings - Fork 27
/
places.zap
3850 lines (3377 loc) · 90.2 KB
/
places.zap
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
.FUNCT GET-OWOMAN-AND-CURTAIN
FSET CURTAIN,NODESC
IN? CURTAIN,HERE /?CND1
MOVE CURTAIN,HERE
?CND1: PUTP OWOMAN,P?LAST-LOC,HERE
IN? OWOMAN,HERE /?CND3
MOVE OWOMAN,HERE
?CND3: ICALL2 REMOVE-ALL,OWOMAN
ICALL2 SEE-CHARACTER,OWOMAN
RFALSE
.FUNCT GET-DACT?
FSET? DACT,TOUCHED /FALSE
FSET? HERE,TOUCHED /FALSE
CALL LAST-ROOM-IN?,MOOR-ROOMS,2
ZERO? STACK /FALSE
FSET DACT,TOUCHED
MOVE DACT,HERE
ICALL2 QUEUE,I-DACT
RTRUE
.FUNCT HILLTOP-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTR "The horizon is lost in the glare of morning upon the Great Sea. You shield your eyes to sweep the shore below, where a village lies nestled beside a quiet cove."
?CCL3: EQUAL? CONTEXT,M-ENTERING \?CCL5
SET 'P-IT-OBJECT,OAK2
RFALSE
?CCL5: EQUAL? CONTEXT,M-EXIT \FALSE
EQUAL? P-WALK-DIR,P?DOWN \FALSE
SET 'P-WALK-DIR,P?EAST
RFALSE
.FUNCT COVESIDE-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTR "Gulls circle the far end of a wharf extending east across the cove. The street is dotted with shanties bleached by years of sun and salt."
?CCL3: EQUAL? CONTEXT,M-EXIT \FALSE
EQUAL? P-WALK-DIR,P?UP \FALSE
SET 'P-WALK-DIR,P?WEST
RFALSE
.FUNCT OUTSIDE-PUB-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \FALSE
PRINTI "Harsh laughter and mouthwatering aromas waft "
FSET? PUB-DOOR,OPENED \?CCL6
PRINTI "through the open "
JUMP ?CND4
?CCL6: PRINTI "out from under the "
?CND4: PRINTI "door of a shanty on the street's west side. "
ICALL1 DESCRIBE-PUB-SIGN
RTRUE
.FUNCT DESCRIBE-PUB-SIGN,X
PRINTI "The words ""Ye Rusty Lantern, A Publick House"" appear in fading script above "
FIRST? PUB-SIGN >X \?CCL3
ICALL2 THIS-IS-IT,X
EQUAL? X,LANTERN \?CCL6
PRINTI "a real "
ICALL2 DPRINT,X
JUMP ?CND4
?CCL6: ICALL2 PRINTA,X
?CND4: PRINTI ", dangling from a "
JUMP ?CND1
?CCL3: SET 'P-IT-OBJECT,PUB-SIGN
PRINTI "an empty "
?CND1: PRINTR "hook."
.FUNCT N-MOOR-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTI "A gray scrim of mist lies across the southern moors, obscuring the path only a few steps away. The outskirts of a village"
PRINT STR?683
RTRUE
?CCL3: EQUAL? CONTEXT,M-ENTERING \FALSE
EQUAL? P-WALK-DIR,P?NORTH \FALSE
ZERO? AUTO /FALSE
ICALL1 BMODE-OFF
RFALSE
.FUNCT IN-GAS-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \FALSE
PRINTI "Your feet make wet, sucking noises as you trudge across patches of rotting vegetable matter. An unwholesome miasma of gasses is making your head swim."
CRLF
ICALL1 MENTION-MOOR-EXIT
RTRUE
.FUNCT MOOR2-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTI "Silent, unblinking eyes peer down at you from the fog-shrouded trees."
CRLF
ICALL1 MENTION-MOOR-EXIT
RTRUE
?CCL3: EQUAL? CONTEXT,M-ENTERING \FALSE
ICALL1 GET-DACT?
RFALSE
.FUNCT MOOR3-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTI "Spooky fingers of mist swirl around your feet. It's hard to see more than a few yards in any "
PRINTD INTDIR
PRINT PERIOD
ICALL1 MENTION-MOOR-EXIT
RTRUE
?CCL3: EQUAL? CONTEXT,M-ENTERING \FALSE
ICALL1 GET-DACT?
RFALSE
.FUNCT MOOR4-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTI "A cacophony of peeps, hoots and croaks sets your nerves on edge."
CRLF
ICALL1 MENTION-MOOR-EXIT
RTRUE
?CCL3: EQUAL? CONTEXT,M-ENTERING \FALSE
ICALL1 GET-DACT?
RFALSE
.FUNCT MOOR5-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTI "Narrow paths wander off between pools of black, fetid mud. The damp chill in the air is making you shiver."
CRLF
ICALL1 MENTION-MOOR-EXIT
RTRUE
?CCL3: EQUAL? CONTEXT,M-ENTERING \FALSE
ICALL1 GET-DACT?
RFALSE
.FUNCT MOOR6-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTI "Gray wraiths of mist linger among the reeds, filling your nostrils with the odor of things long dead."
CRLF
ICALL1 MENTION-MOOR-EXIT
RTRUE
?CCL3: EQUAL? CONTEXT,M-ENTERING \FALSE
ICALL1 GET-DACT?
RFALSE
.FUNCT MENTION-MOOR-EXIT,WRD,TBL
GETP HERE,P?SW >TBL
ZERO? TBL /?CCL3
GET TBL,XROOM
EQUAL? STACK,SW-MOOR \?CCL3
SET 'WRD,W?SOUTHWEST
JUMP ?CND1
?CCL3: GETP HERE,P?NORTH >TBL
ZERO? TBL /?CND1
GET TBL,XROOM
EQUAL? STACK,N-MOOR \?CND1
SET 'WRD,W?NORTH
?CND1: ZERO? WRD /FALSE
PRINT TAB
PRINTI "The mist thins out a bit to the "
PRINTB WRD
PRINT PERIOD
RTRUE
.FUNCT SW-MOOR-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTR "Circling gulls and a forest of masts disclose a seaport not far to the west. The view to the northeast is obscured by a blanket of mist."
?CCL3: EQUAL? CONTEXT,M-ENTERING \FALSE
EQUAL? P-WALK-DIR,P?SW \FALSE
ZERO? AUTO /FALSE
ICALL1 BMODE-OFF
RFALSE
.FUNCT IN-PORT-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \FALSE
PRINTI "Mizniaport is a magnet for the wealthy yipples of Borphee, who browse the colorful shops in search of next year's fashions"
PRINT PTAB
PRINTR "An especially swank boutique stands just north of here. Beside it, a path marked ""Private Way"" bends northeast."
.FUNCT IN-YARD-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \FALSE
PRINTI "This shady nook obviously belongs to some well-to-do yipple. The arborvitaes are lush and neatly trimmed, with twin beds of flowers leading up to a little red "
PRINTD STABLE
PRINT PERIOD
RTRUE
.FUNCT STABLE-IN
ICALL PERFORM,V?ENTER,STALL
RFALSE
.FUNCT EXIT-STABLE
IN? PLAYER,STALL /?CCL2
RETURN IN-YARD
?CCL2: ICALL PERFORM,V?EXIT,STALL
RFALSE
.FUNCT IN-STABLE-F,CONTEXT,U,ANY,X
IN? UNICORN,STALL \?CND1
INC 'U
?CND1: EQUAL? CONTEXT,M-LOOK \?CCL5
FSET? STALL,MUNGED \?CCL8
PRINTI "The splintered ruins of "
ICALL2 THE-PRINT,STALL
PRINTI " look out of place in this otherwise"
JUMP ?CND6
?CCL8: PRINTI "Not a straw is out of place in this"
?CND6: PRINTI " immaculate "
PRINTD STABLE
IN? PLAYER,STALL \?CND9
PRINT PERIOD
RTRUE
?CND9: CALL2 SEE-ANYTHING-IN?,STALL >ANY
FSET? STALL,MUNGED \?CND11
ZERO? ANY /?CND13
PRINTI ". "
PRINT STR?530
ICALL2 CONTENTS,STALL
SET 'P-IT-OBJECT,STALL
?CND13: PRINT PERIOD
RTRUE
?CND11: PRINTI ". The one"
ICALL2 OPEN-CLOSED,STALL
PRINT SIS
ZERO? U /?CCL17
PRINTI "occupied by a snow-white "
PRINTD UNICORN
PRINTI ", who gazes at you mournfully from between the slats"
ZERO? ANY /?CND15
PRINTI ". You can also "
JUMP ?CND15
?CCL17: PRINTI "unoccupied"
ZERO? ANY /?CND15
PRINTI "; you can "
?CND15: ZERO? ANY /?CND22
PRINTI "see "
ICALL2 CONTENTS,STALL
PRINTI " inside"
SET 'P-IT-OBJECT,STALL
?CND22: PRINT PERIOD
RTRUE
?CCL5: EQUAL? CONTEXT,M-ENTERING \?CCL25
ZERO? U /FALSE
ICALL2 SEE-CHARACTER,UNICORN
FSET UNICORN,SEEN
ICALL2 QUEUE,I-UNICORN
RFALSE
?CCL25: EQUAL? CONTEXT,M-EXIT \FALSE
ZERO? U /FALSE
ICALL2 DEQUEUE,I-UNICORN
ICALL2 CTHE-PRINT,UNICORN
PRINTR " whinnies pitifully as you leave."
.FUNCT IN-BOUTIQUE-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTI "The sheer, flowing fabrics and gossamer pastels in this little shop create an atmosphere of taste and calm conducive to reckless spending.
A "
ICALL2 SHOP-DOOR,BOUTIQUE-DOOR
PRINTI " offers the latest in travel fashions"
ICALL2 LOOK-ON-CASE,ON-BCASE
RTRUE
?CCL3: EQUAL? CONTEXT,M-ENTERING \?CCL5
ICALL1 GET-OWOMAN-AND-CURTAIN
ICALL2 QUEUE,I-OWOMAN
RFALSE
?CCL5: EQUAL? CONTEXT,M-EXIT \FALSE
ICALL2 DEQUEUE,I-OWOMAN
IN? OWOMAN,IN-BOUTIQUE \FALSE
PRINTI """See you later,"" calls "
ICALL2 THE-PRINT,OWOMAN
PRINTR " as you leave."
.FUNCT IN-PUB-F,CONTEXT,X
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTI "Loud voices and clattering dishes make this smarmy dive sound busier than it really is. Your eyes sting from the greasy smoke drifting in from "
ICALL2 THE-PRINT,KITCHEN
PRINT PTAB
ICALL2 PRINTCA,BANDITS
PRINTI " is hogging the fireplace."
CRLF
FIRST? PUBWALL >X \TRUE
SET 'P-IT-OBJECT,X
PRINT TAB
ICALL2 PRINTCA,X
PRINTR " is imbedded in the wall."
?CCL3: EQUAL? CONTEXT,M-ENTERING \?CCL7
ICALL2 QUEUE,I-BANDITS
RFALSE
?CCL7: EQUAL? CONTEXT,M-ENTERED \?CCL9
SET 'P-THEM-OBJECT,BANDITS
RFALSE
?CCL9: EQUAL? CONTEXT,M-EXIT \FALSE
ZERO? P-WALK-DIR /?CND12
FSET? DAGGER,NODESC \?CND12
FCLEAR DAGGER,NODESC
BOR NEW-DBOX,SHOWING-ROOM >NEW-DBOX
MOVE DAGGER,PUBWALL
SET 'P-IT-OBJECT,DAGGER
FSET BANDITS,SEEN
PRINTI "You edge towards the "
EQUAL? P-WALK-DIR,P?WEST,P?IN \?CCL17
PRINTD KITCHEN
JUMP ?CND15
?CCL17: PRINTB W?EXIT
?CND15: PRINT PTAB
ICALL2 ITALICIZE,STR?604
PRINTI "! A dagger streaks past your ear, imbedding itself deep into the wall.
""Har!"" chortles a bandit."
CRLF
RETURN 2
?CND12: ICALL2 DEQUEUE,I-BANDITS
RFALSE
.FUNCT IN-KITCHEN-F,CONTEXT,D,L
FSET? CELLAR-DOOR,OPENED \?CND1
INC 'D
?CND1: EQUAL? CONTEXT,M-LOOK \?CCL5
PRINTI "Coils of greasy steam rise from a cauldron bubbling over a roaring hearth. "
ICALL2 CTHE-PRINT,CEILING
PRINTI " is hung with crusty pots and strips of old meat"
PRINT PTAB
PRINTC 65
FSET? CELLAR-DOOR,MUNGED \?CCL8
PRINTI " gaping hole"
JUMP ?CND6
?CCL8: ZERO? D /?CCL10
PRINTI "n open door"
JUMP ?CND6
?CCL10: PRINTI " closed door"
?CND6: PRINT SIN
ICALL2 THE-PRINT,GCORNER
ZERO? D /?CND11
PRINTR " reveals a stair leading downward."
?CND11: PRINTR " bears the legend, ""Keepeth Out."""
?CCL5: EQUAL? CONTEXT,M-ENTERING \?CCL14
IN? COOK,IN-KITCHEN /?CND15
MOVE COOK,IN-KITCHEN
?CND15: FCLEAR COOK,NODESC
ICALL2 SEE-CHARACTER,COOK
FSET COOK,SEEN
ICALL2 QUEUE,I-COOK
RFALSE
?CCL14: EQUAL? CONTEXT,M-ENTERED \?CCL18
FSET? BOTTLE,MUNGED /FALSE
IN? BOTTLE,PLAYER \FALSE
PRINT TAB
ICALL1 COOK-SEES-BOTTLE
RTRUE
?CCL18: EQUAL? CONTEXT,M-EXIT \FALSE
ZERO? P-WALK-DIR /?CCL27
FSET? ONION,TOUCHED \?CCL27
FSET? BOTTLE,IDENTIFIED /?CCL27
FCLEAR COOK,SEEN
PRINTI """Wait a second."""
CRLF
ICALL1 I-ONION-OFFER
RETURN 2
?CCL27: EQUAL? P-WALK-DIR,P?DOWN,P?IN \?CCL34
ZERO? D \?CCL37
ICALL2 ITS-CLOSED,CELLAR-DOOR
RETURN 2
?CCL37: FSET? CELLAR-DOOR,TOUCHED /?CND35
FSET CELLAR-DOOR,TOUCHED
CALL1 SETUP-CELLAR?
ZERO? STACK /FALSE
?CND35: ICALL2 DEQUEUE,I-COOK
PRINTI "You clump down "
ICALL2 THE-PRINT,CELLAR-STAIR
PRINT PERIOD
RTRUE
?CCL34: EQUAL? P-WALK-DIR,P?EAST,P?OUT \FALSE
SET 'P-WALK-DIR,P?EAST
ICALL2 DEQUEUE,I-COOK
RFALSE
.FUNCT ON-WHARF-DOWN
FSET SALT,SEEN
PRINTI """Careful!"" warns "
ICALL2 THE-PRINT,SALT
PRINTI ", holding you back. ""Water's mighty cool this time o' year."""
CRLF
RFALSE
.FUNCT ON-WHARF-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINT STR?686
PRINTI " Far below, you "
PRINT STR?687
FIRST? COVE \?CND4
PRINT PTAB
PRINT YOU-SEE
ICALL2 CONTENTS,COVE
PRINTI " bobbing on the waves"
?CND4: PRINT PERIOD
RTRUE
?CCL3: EQUAL? CONTEXT,M-ENTERING \?CCL7
FSET? SHILL,BUOYANT /?CND8
FSET SHILL,BUOYANT
ICALL2 QUEUE,I-SHILL
?CND8: FSET SALT,SEEN
ICALL2 QUEUE,I-SALT
ICALL2 SEE-CHARACTER,SALT
RFALSE
?CCL7: EQUAL? CONTEXT,M-EXIT \FALSE
FSET? SHILL,SEEN /?CND12
ICALL1 SEE-SHILL
RETURN 2
?CND12: ICALL2 DEQUEUE,I-SALT
ZERO? P-WALK-DIR /FALSE
PRINTR """See y'later,"" chuckles the salt as you walk away."
.FUNCT LOCK-CELLAR-DOOR
FSET CELLAR-DOOR,LOCKED
PRINT YOU-HEAR
PRINT LTHE
ICALL2 ITALICIZE,STR?522
PRINTR " of a substantial lock."
.FUNCT AT-BOTTOM-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTI "You're standing at the bottom of a short, rickety stairway, ankle-deep in refuse. "
FSET? CELLAR-DOOR,OPENED \?CND4
PRINTI "Light streams down through a"
FSET? CELLAR-DOOR,MUNGED \?CCL8
PRINTI " gaping hole"
JUMP ?CND6
?CCL8: PRINTI "n open door"
?CND6: PRINTR " overhead."
?CND4: PRINTR "The door overhead is closed."
?CCL3: EQUAL? CONTEXT,M-ENTERING \?CCL10
IN? COOK,AT-BOTTOM /?CND11
MOVE COOK,AT-BOTTOM
FSET COOK,NODESC
?CND11: SET 'P-IT-OBJECT,CELLAR-DOOR
RFALSE
?CCL10: EQUAL? CONTEXT,M-EXIT \FALSE
EQUAL? P-WALK-DIR,P?UP \FALSE
FSET? CELLAR-DOOR,MUNGED \?CCL19
ZERO? AUTO /?CND20
ICALL1 BMODE-OFF
?CND20: ICALL2 YOU-CLIMB-UP,TRUE-VALUE
RTRUE
?CCL19: FSET? CELLAR-DOOR,LOCKED \?CCL23
SET 'P-IT-OBJECT,CELLAR-DOOR
ICALL2 CTHE-PRINT,P-IT-OBJECT
PRINTI " is locked."
CRLF
RETURN 2
?CCL23: FSET? CELLAR-DOOR,OPENED \FALSE
BOR NEW-DBOX,SHOWING-ROOM >NEW-DBOX
SET 'P-IT-OBJECT,CELLAR-DOOR
FCLEAR CELLAR-DOOR,OPENED
FCLEAR AT-BOTTOM,LIGHTED
ICALL2 ITALICIZE,STR?605
PRINTI "! An unseen hand slams "
ICALL2 THE-PRINT,CELLAR-DOOR
PRINTI " in your face."
CRLF
ICALL1 SAY-IF-HERE-LIT
PRINT TAB
ICALL1 LOCK-CELLAR-DOOR
RETURN 2
.FUNCT WC1-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \FALSE
PRINTR "Smashed bottles litter the floor, and the air reeks of sour wine."
.FUNCT SKEL-ROOM-F,CONTEXT,X
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTR "Precarious stacks of barrels loom in the shadows on every side."
?CCL3: EQUAL? CONTEXT,M-BEG \FALSE
ZERO? CHOKE /FALSE
EQUAL? PRSA,V?SAVE,V?UNDO \?CCL10
ICALL2 MUMBLAGE,SKELETON
RTRUE
?CCL10: EQUAL? PRSA,V?WAIT,V?LOOK /FALSE
INTBL? PRSA,GAME-VERBS,NGVERBS >X /FALSE
SET 'X,P-PRSA-WORD
EQUAL? PRSA,V?WALK,V?WALK-TO \?CCL16
SET 'X,W?MOVE
JUMP ?CND14
?CCL16: INTBL? PRSA,TALKVERBS,NTVERBS >X \?CCL18
SET 'X,W?SPEAK
JUMP ?CND14
?CCL18: INTBL? PRSA,SEEVERBS,NSVERBS >X \?CCL20
SET 'X,W?SEE
JUMP ?CND14
?CCL20: EQUAL? SKELETON,PRSO,PRSI /FALSE
?CND14: PRINTI "It's not easy to "
ZERO? X \?CCL24
PRINTI "do that"
JUMP ?CND22
?CCL24: PRINTB X
?CND22: PRINTI " while you're being strangled to death."
CRLF
RETURN 2
.FUNCT MOSS-ROOM-F,CONTEXT,X
EQUAL? CONTEXT,M-LOOK \FALSE
CALL1 LIGHT-SOURCE? >X
ZERO? X \?CCL6
PRINTI "The dim light"
JUMP ?CND4
?CCL6: ICALL2 CTHE-PRINT,X
PRINTI "'s glow"
?CND4: PRINTR " reveals a gray patch of moss on the wall."
.FUNCT UPSTACK,BAD
ZERO? LIT? \?CND1
ICALL1 TOO-DARK
RFALSE
?CND1: PRINTI "You teeter "
GET STATS,DEXTERITY
LESS? STACK,15 \?CCL5
INC 'BAD
PRINTI "uncertainly"
JUMP ?CND3
?CCL5: PRINTI "for a moment"
?CND3: PRINTI " on the lowest crates"
ZERO? BAD /?CND6
PRINTI ", lose your balance, and sprawl to "
ICALL2 THE-PRINT,GROUND
FSET? CRATES,SEEN /?CND8
FSET CRATES,SEEN
PRINTI ". Not very coordinated, are you?"
CRLF
RFALSE
?CND8: PRINT PERIOD
RFALSE
?CND6: PRINTI ", then slowly edge your way upward."
CRLF
ZERO? VERBOSITY /?CND10
CRLF
?CND10: RETURN BARRELTOP
.FUNCT AT-STACK-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \FALSE
PRINTI "Empty wine crates are stacked to "
ICALL2 THE-PRINT,CEILING
PRINTR " in a stairlike spiral."
.FUNCT THRONE-ROOM-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTI "A shallow nest of sea shells, coral and other bits of ocean debris lies in "
ICALL2 THE-PRINT,GCORNER
CALL2 SEE-ANYTHING-IN?,THRONE
ZERO? STACK /?CND4
PRINTI ". Upon this pile you see "
ICALL2 CONTENTS,THRONE
?CND4: PRINT PERIOD
RTRUE
?CCL3: EQUAL? CONTEXT,M-ENTERED \FALSE
FSET? CRAB,MONSTER /FALSE
FSET CRAB,MONSTER
BOR NEW-DBOX,SHOWING-ROOM >NEW-DBOX
ICALL2 QUEUE,I-CRAB
RFALSE
.FUNCT BARRELTOP-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTR "You struggle to keep your balance as the stack sways back and forth in the darkness."
?CCL3: EQUAL? CONTEXT,M-ENTERING \FALSE
EQUAL? P-WALK-DIR,P?UP \FALSE
ZERO? AUTO /FALSE
ICALL1 BMODE-OFF
RFALSE
.FUNCT IN-THRIFF-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINTI "Trim white cottages are clustered around a central grove of mountain firs, tall and lovingly tended. A little chapel graces the west side of the street"
FSET? CHAPEL-DOOR,OPENED \?CND4
PRINTI ", its front doors wide open"
?CND4: PRINT PTAB
PRINTI "Turning south, you see a "
FSET? FOREST-EDGE,MUNGED \?CND6
PRINTI "wall of "
PRINTD XTREES
PRINTR " waiting to descend upon the village."
?CND6: PRINTI "narrow trail winding up into the mountains"
ZERO? MAGMA-TIMER /?CND8
PRINTI ", backlit by a "
ICALL1 GLOW-COLOR
PRINTI "glow of heat"
?CND8: PRINT PERIOD
RTRUE
?CCL3: EQUAL? CONTEXT,M-EXIT \FALSE
EQUAL? P-WALK-DIR,P?IN \?CCL14
SET 'P-WALK-DIR,P?WEST
RFALSE
?CCL14: EQUAL? P-WALK-DIR,P?UP,P?SOUTH \FALSE
SET 'P-WALK-DIR,P?SOUTH
ZERO? MAGMA-TIMER /?CCL18
CALL2 WEARING-MAGIC?,RING
ZERO? STACK /?CND19
PRINTR "Your ring finger tingles as you draw closer to the blistering heat."
?CND19: PRINTI "A blistering wall of heat forces you to turn back."
CRLF
RETURN 2
?CCL18: CALL GLOBAL-IN?,FOREST-EDGE,SNOW
ZERO? STACK /FALSE
PRINTR "Your feet become dusted with snow as you ascend."
.FUNCT IN-CHAPEL-F,CONTEXT,X
EQUAL? CONTEXT,M-LOOK \?CCL3
IN? CLERIC,IN-CHAPEL \?CCL6
IN? RELIQUARY,CLERIC \?CCL9
ICALL2 CTHE-PRINT,CLERIC
PRINTI " stands beside "
ICALL2 THE-PRINT,ALTAR
PRINTI ", holding "
ICALL2 CONTENTS,CLERIC
JUMP ?CND4
?CCL9: PRINTI "An anxious "
PRINTD CONGREG
PRINTI " kneels in silent prayer before "
ICALL2 THE-PRINT,CLERIC
PRINTI ". On the altar beside him rests "
ICALL2 CONTENTS,ALTAR
JUMP ?CND4
?CCL6: PRINTI "Rows of empty pews face a deserted altar"
CALL2 SEE-ANYTHING-IN?,ALTAR
ZERO? STACK /?CND4
PRINTI ", upon which rests "
ICALL2 CONTENTS,ALTAR
?CND4: PRINT PERIOD
RTRUE
?CCL3: EQUAL? CONTEXT,M-BEG \?CCL13
IN? CLERIC,IN-CHAPEL \FALSE
EQUAL? PRSA,V?HIT,V?MUNG,V?KICK \?CCL18
PRINTI "This is no place for violence."
CRLF
RETURN 2
?CCL18: ZERO? THRIFF-WON \FALSE
INTBL? PRSA,TALKVERBS,NTVERBS >X \FALSE
FSET CLERIC,SEEN
ICALL1 PCLEAR
PRINTC QUOTATION
RANDOM 100 >X
LESS? X,33 \?CCL25
PRINTI "Shhh"
JUMP ?CND23
?CCL25: LESS? X,67 \?CCL27
PRINTI "Quiet"
JUMP ?CND23
?CCL27: PRINTI "Shush"
?CND23: PRINTI "!"" whispers a member of "
ICALL2 THE-PRINT,CONGREG
PRINT PERIOD
RETURN 2
?CCL13: EQUAL? CONTEXT,M-ENTERING \?CCL31
FSET? CLERIC,LIVING /FALSE
FSET CLERIC,LIVING
FCLEAR CLERIC,SEEN
SET 'P-HIM-OBJECT,CLERIC
SET 'P-THEM-OBJECT,CONGREG
SET 'CLERIC-SCRIPT,INIT-CLERIC-SCRIPT
ICALL2 QUEUE,I-CLERIC
RFALSE
?CCL31: EQUAL? CONTEXT,M-EXIT \FALSE
EQUAL? P-WALK-DIR,P?OUT \?CND36
SET 'P-WALK-DIR,P?EAST
?CND36: ZERO? THRIFF-WON \FALSE
IN? CLERIC,IN-CHAPEL \FALSE
ICALL2 DEQUEUE,I-CLERIC
PRINTC QUOTATION
CALL2 PICK-NEXT,CLERIC-WOES
PRINT STACK
PRINTI "!"" wails "
ICALL2 THE-PRINT,CLERIC
PRINT PERIOD
RTRUE
.FUNCT DESCRIBE-FOREST-EDGE,OBJ
PRINTI "Snowy Clearing"
RTRUE
.FUNCT FOREST-EDGE-F,CONTEXT,BHERE
EQUAL? CONTEXT,M-LOOK \?CCL3
CALL GLOBAL-IN?,FOREST-EDGE,LAVA
ZERO? STACK /?CCL6
PRINTI "An avalanche of lava has consumed the upward trail, ending here in a "
ZERO? MAGMA-TIMER /?CCL9
ICALL1 GLOW-COLOR
PRINTB W?POOL
JUMP ?CND7
?CCL9: PRINTI "dark, steaming crust"
?CND7: PRINTI ". Many of the surrounding "
ICALL1 SAY-TREES
PRINTI " are damaged; the survivors linger near the blackened edge of the clearing."
CRLF
JUMP ?CND4
?CCL6: PRINTI "The upward trail bends sharply west here, winding out of sight between the "
ICALL1 SAY-TREES
PRINT PERIOD
?CND4: ICALL1 MENTION-GLYPH?
RTRUE
?CCL3: EQUAL? CONTEXT,M-ENTERING \?CCL11
FSET? XTREES,SEEN \?CND12
SET 'P-THEM-OBJECT,XTREES
?CND12: CALL GLOBAL-IN?,FOREST-EDGE,GLYPH
ZERO? STACK /FALSE
SET 'P-IT-OBJECT,GLYPH
RFALSE
?CCL11: EQUAL? CONTEXT,M-EXIT \FALSE
FSET? XTREES,TOUCHED /?CND18
ICALL1 SEE-XTREES
RETURN 2
?CND18: EQUAL? P-WALK-DIR,P?UP \?CND22
SET 'P-WALK-DIR,P?WEST
?CND22: EQUAL? P-WALK-DIR,P?DOWN \?CND24
SET 'P-WALK-DIR,P?NORTH
?CND24: EQUAL? P-WALK-DIR,P?NORTH \?CCL28
ZERO? LAVA-TIMER /?CND29
PRINTR "Volcanic heat singes your eyebrows as you race down the mountainside."
?CND29: PRINTI "You stride down into the village"
ICALL1 BYE-BFLY
RTRUE
?CCL28: EQUAL? P-WALK-DIR,P?WEST \FALSE
ZERO? LAVA-TIMER /?CND26
ICALL2 CASCADE,STR?666
RETURN 2
?CND26: ICALL2 CTHE-PRINT,XTREES
PRINTI " shuffle "
ZERO? MAGMA-TIMER /?CCL38
PRINTI "impotently at the lava's edge"
JUMP ?CND36
?CCL38: IN? BFLY,PLAYER \?CCL40
FSET? BFLY,MUNGED \?CCL40
FSET? BFLY,LIVING \?CCL40
PRINTI "nervously out of your way"
?CND36: PRINTI " as you ascend the slope"
ICALL1 BYE-BFLY
RTRUE
?CCL40: FSET XTREES,SEEN
PRINTI "across the upward trail, blocking it completely."
CRLF
RETURN 2
.FUNCT BYE-BFLY
IN? BFLY,HERE \?CND1
FSET? BFLY,MUNGED \?CND1
FSET? BFLY,LIVING \?CND1
REMOVE BFLY
ICALL2 DEQUEUE,I-PILLAR
PRINTI "; behind you, "
ICALL2 THE-PRINT,BFLY
PRINTI " crawls out of sight"
?CND1: PRINT PERIOD
RTRUE
.FUNCT SEE-XTREES
FSET XTREES,TOUCHED
FSET XTREES,SEEN
BOR NEW-DBOX,SHOWING-ROOM >NEW-DBOX
SET 'P-THEM-OBJECT,XTREES
SET 'P-WALK-DIR,FALSE-VALUE
SET 'OLD-HERE,FALSE-VALUE
MOVE ORNAMENT,HERE
SET 'P-IT-OBJECT,ORNAMENT
ICALL2 QUEUE,I-XTREES
ICALL2 ITALICIZE,STR?695
PRINTI "! Something hard hits the back of "
PRINTD HEAD
PRINTI " and rolls to your feet."
CRLF
ICALL1 BMODE-ON
ICALL UPDATE-STAT,-5,ENDURANCE
PRINT TAB
PRINTI "A strange chorus of humming rises from the forest as you rub "
PRINTD HEAD
PRINTI ". It takes a few moments for you to recall the familiar melody: """
CALL2 PICK-NEXT,CAROLS
PRINT STACK
PRINTI "!"""
CRLF
RFALSE
.FUNCT SAY-TREES
FSET? XTREES,TOUCHED \?CCL3
PRINTD XTREES
RTRUE
?CCL3: PRINTB W?TREES
RTRUE
.FUNCT MENTION-GLYPH?,X
CALL GLOBAL-IN?,HERE,GLYPH
ZERO? STACK /TRUE
PRINT TAB
ICALL2 PRINTCA,GLYPH
PRINTI " is inscribed in the "
CALL GLOBAL-IN?,HERE,SNOW
ZERO? STACK /?CCL5
PRINTB W?SNOW
JUMP ?CND3
?CCL5: ZERO? MAGMA-TIMER \?CCL7
PRINTI "hardened crust"
JUMP ?CND3
?CCL7: ICALL1 GLOW-COLOR
PRINTB W?LAVA
?CND3: PRINTR " at your feet."
.FUNCT ON-TRAIL-F,CONTEXT,W,LV
IN? WIGHT,ON-TRAIL \?CND1
FSET? WIGHT,MONSTER \?CND1
INC 'W
?CND1: EQUAL? CONTEXT,M-LOOK \?CCL7
CALL GLOBAL-IN?,ON-TRAIL,LAVA >LV
PRINTI "This "
ZERO? LV /?CCL10
PRINTI "high trail has been consumed by an avalanche of "
ZERO? MAGMA-TIMER /?CND11
ICALL1 GLOW-COLOR
?CND11: PRINTD LAVA
ZERO? MAGMA-TIMER \?CND8
PRINTI ", still steaming in the frosty air"
JUMP ?CND8
?CCL10: PRINTI "snowbound trail commands a superb view of the surrounding countryside. Maybe you could enjoy the sights if "
ZERO? LAVA-TIMER \?CCL17
PRINTI "your teeth would stop chatter"
JUMP ?CND15
?CCL17: ICALL2 THE-PRINT,GROUND
PRINTI " would stop shak"
?CND15: PRINTI "ing"
?CND8: FSET? FOREST-EDGE,MUNGED \?CND18
PRINTI ". The downward path is hopelessly choked with "
PRINTD XTREES
?CND18: PRINT PERIOD
ZERO? LV \?CND20
PRINT TAB
ICALL2 PRINTCA,CABIN
PRINTI " hugs the south side of the trail"
FSET? CABIN-DOOR,OPENED \?CND22
PRINTI ", its front door banging open and shut in the wind"
?CND22: PRINTI ". Before it stands a"
FSET? MAILBOX,OPENED \?CCL26
PRINTI "n open "
JUMP ?CND24
?CCL26: PRINTI " closed "
?CND24: PRINTD MAILBOX
PRINT PERIOD
?CND20: ICALL1 MENTION-GLYPH?
RTRUE
?CCL7: EQUAL? CONTEXT,M-ENTERING \?CCL28
CALL GLOBAL-IN?,ON-TRAIL,GLYPH
ZERO? STACK /?CND29
SET 'P-IT-OBJECT,GLYPH
?CND29: ZERO? W /FALSE
SET 'P-IT-OBJECT,WIGHT
SET 'LAST-MONSTER,WIGHT
SET 'LAST-MONSTER-DIR,P?EAST
ICALL2 QUEUE,I-WIGHT
RFALSE
?CCL28: EQUAL? CONTEXT,M-EXIT \FALSE
EQUAL? P-WALK-DIR,P?DOWN \?CCL37
SET 'P-WALK-DIR,P?EAST
JUMP ?CND35
?CCL37: EQUAL? P-WALK-DIR,P?UP \?CCL39
SET 'P-WALK-DIR,P?WEST
JUMP ?CND35
?CCL39: EQUAL? P-WALK-DIR,P?IN \?CND35
SET 'P-WALK-DIR,P?SOUTH
?CND35: EQUAL? P-WALK-DIR,P?WEST \?CCL43
ZERO? LAVA-TIMER /?CCL46
ICALL2 CASCADE,STR?697
RETURN 2
?CCL46: IN? WIGHT,ON-TRAIL \FALSE
FSET? WIGHT,MONSTER /?CND50
ICALL1 START-WIGHT
RETURN 2
?CND50: ICALL2 CTHE-PRINT,WIGHT
PRINTI " leaps into your path and snarls."
CRLF
RETURN 2
?CCL43: EQUAL? P-WALK-DIR,P?SOUTH \?CCL57
FSET? CABIN-DOOR,OPENED \FALSE
ZERO? W /?CCL62
FSET? W,SLEEPING /?CCL62
ICALL1 SNARLS
JUMP ?CND58
?CCL62: PRINT CYOU
?CND58: ICALL2 DEQUEUE,I-WIGHT
PRINTI "retreat into the shelter of "
ICALL2 THE-PRINT,CABIN
ZERO? LAVA-TIMER /?CND65
PRINT STR?698
?CND65: PRINT PERIOD
RTRUE
?CCL57: EQUAL? P-WALK-DIR,P?EAST \FALSE
ZERO? W /?CCL70
FSET? WIGHT,SLEEPING /?CCL70
ICALL1 SNARLS
JUMP ?CND41
?CCL70: PRINT CYOU
?CND41: ICALL2 DEQUEUE,I-WIGHT
PRINTI "stumble down "
ICALL2 THE-PRINT,TRAIL
ZERO? LAVA-TIMER /?CND73
PRINT STR?698
PRINT PERIOD
RTRUE
?CND73: ICALL1 BYE-BFLY
RTRUE
.FUNCT SNARLS
ICALL2 CTHE-PRINT,WIGHT
PRINTI " snarls a threat as you "
RTRUE
.FUNCT IN-CABIN-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \FALSE
PRINTI "Whoever works in this isolated cabin ought to consider the services of a maid nymph. Retorts, alembics and other dubious "
PRINTD CHEMS
PRINTI " are spilled across "
ICALL2 THE-PRINT,BENCH
PRINTI " in the center of the room"
FSET CHEMS,NODESC
CALL2 SEE-ANYTHING-IN?,BENCH
ZERO? STACK /?CND4
PRINTI ". You also see "
ICALL2 CONTENTS,BENCH
PRINTI " lying amid the mess"
?CND4: FCLEAR CHEMS,NODESC
PRINT PERIOD
RTRUE
.FUNCT ON-PEAK-F,CONTEXT
EQUAL? CONTEXT,M-LOOK \?CCL3
PRINT XTHE
CALL GLOBAL-IN?,ON-PEAK,LAVA
ZERO? STACK /?CCL6
ZERO? MAGMA-TIMER /?CND7
ICALL1 GLOW-COLOR
?CND7: PRINTI "flow of lava"
JUMP ?CND4
?CCL6: PRINTI "upward trail"
?CND4: PRINTI " ends here, at the brink of "
ICALL2 PRINTA,CRATER
PRINTI ". "
IN? DOME,ON-PEAK \?CCL11
PRINTI "Most of the opening is hidden beneath "
ICALL2 PRINTA,DOME
PRINTI " of light, at least a hundred yards across and almost as high."
CRLF
JUMP ?CND9
?CCL11: ZERO? LAVA-TIMER /?CCL13
PRINTI "Molten lava is spewing out of the opening in a spectacular plume."
CRLF
JUMP ?CND9
?CCL13: ICALL1 SAY-STEAM
?CND9: ICALL1 MENTION-GLYPH?
RTRUE
?CCL3: EQUAL? CONTEXT,M-EXIT \FALSE
EQUAL? P-WALK-DIR,P?DOWN \?CND16
SET 'P-WALK-DIR,P?EAST
?CND16: EQUAL? P-WALK-DIR,P?EAST \FALSE
ZERO? LAVA-TIMER /?CND20
PRINTR "An onrushing tide of red-hot magma encourages your descent."
?CND20: PRINTI "You stumble down the steep trail"
ICALL1 BYE-BFLY
RTRUE
.FUNCT SAY-STEAM
PRINTI "Billowing clouds of steam obscure "