-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathaisle.zil
1504 lines (1416 loc) · 43.4 KB
/
aisle.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
"AISLE for
NORD AND BERT
(c) Copyright 1987 Infocom, Inc. All Rights Reserved."
<OBJECT AISLE
(LOC LOCAL-GLOBALS)
(DESC "aisle")
(PICK-IT "Go to the Shopping Bizarre")
(MAX-SCORE 22) ;"WAS 22? , HAD BEEN 21"
(SCENE-SCORE 0)
(SCENE-ROOM DESSERT-ROOM)
(SCENE-CUR 0)
(SYNONYM AISLE WRITE MEET MEETS MANICOTTI ISLE MISC MUSSELANEOUS
MAN CELLAR BRITISH BRIT DESERT DESSERT DESSERTS DESS)
(ADJECTIVE I\'LL DESSERT DESERT DESSERTS BRIT BRITISH MISC
;MAN DESS MUSSELANEOUS)
(FLAGS NDESCBIT SCENEBIT VOWELBIT)
(ACTION AISLE-F)>
<GLOBAL REAL-AISLE <>>
<ROUTINE AISLE-F ()
<COND (<OR <ADJ-USED ,AISLE ,W?DESSERT ,W?DESERT ,W?DESSERTS>
<NOUN-USED ,AISLE ,W?DESSERT ,W?DESERT ,W?DESSERTS>
<NOUN-USED ,AISLE ,W?DESS>
<ADJ-USED ,AISLE ,W?DESS>>
<SETG REAL-AISLE ,DESSERT-ROOM>)
(<NOUN-USED ,AISLE ,W?MANICOTTI ,W?MAN>
<SETG REAL-AISLE ,MANICOTTI-ROOM>)
(<NOUN-USED ,AISLE ,W?MEET ,W?MEETS>
;<ADJ-USED ,AISLE ,W?LET ,W?US>
<SETG REAL-AISLE ,LET-ROOM>)
(<OR <ADJ-USED ,AISLE ,W?BRITISH ,W?BRIT>
<NOUN-USED ,AISLE ,W?BRITISH ,W?BRIT>>
<SETG REAL-AISLE ,BRITISH-ROOM>)
(<OR <ADJ-USED ,AISLE ,W?MUSSELANEOUS ,W?MISC>
<NOUN-USED ,AISLE ,W?MUSSELANEOUS ,W?MISC>>
<SETG REAL-AISLE ,MUSSEL-ROOM>)
(<OR <NOUN-USED ,AISLE ,W?WRITE>
<ADJ-USED ,AISLE ,W?I\'LL>>
<SETG REAL-AISLE ,ILL-ROOM>)
(<NOUN-USED ,AISLE ,W?CELLAR>
<SETG REAL-AISLE ,CELLAR-ROOM>)
;(T
<SETG REAL-AISLE ,DESSERT-ROOM>)>
<COND (<OR <NOT ,REAL-AISLE>
<VERB? NO-VERB>
<AND <DONT-HANDLE ,AISLE>
<NOT <VERB? WALK-TO>>>>
<RFALSE>)
(<VERB? WALK-TO>
<COND (<EQUAL? ,HERE ,REAL-AISLE>
<TELL ,ARRIVED>)
(<EQUAL? ,REAL-AISLE ,CELLAR-ROOM>
<COND (<NOT <EQUAL? ,HERE ,ILL-ROOM>>
<TELL "You dash over to \"I'll Write...\" ">)>
<SETG OLD-HERE <>>
<SETG HERE ,ILL-ROOM>
<MOVE ,PROTAGONIST ,ILL-ROOM>
;<DO-WALK ,P?IN>
<ILL-ROOM-EXIT>
;<V-$REFRESH T>
<RTRUE>)
(<EQUAL? ,HERE ,CELLAR-ROOM>
<TELL "You climb up the stairs, going to..." CR CR>
<GOTO ,REAL-AISLE>)
(T
<COND (<PROB 30>
<TELL
"You dash around the corner, sliding on the high-sheen surface of the
well-waxed supermarket floor">)
(<PROB 30>
<TELL "You waltz over there">)
(T
<TELL "You zip around the corner">)>
<TELL "..." CR CR>
<GOTO ,REAL-AISLE>)>)
(<NOT <EQUAL? ,HERE ,REAL-AISLE>>
<CANT-SEE "such place">)
;(T
<CHANGE-OBJECT ,AISLE ,GLOBAL-ROOM>
<RTRUE>)>>
<ROOM DESSERT-ROOM
(LOC ROOMS)
(DESC "Dessert Aisle")
(OUT TO MANICOTTI-ROOM)
(GLOBAL AISLE)
(FLAGS INDOORSBIT)
(ACTION DESSERT-ROOM-F)>
<ROUTINE DESSERT-ROOM-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"You are all alone in a dessert aisle. The hum of a long
freezer that runs the length of the aisle is monotonous and the air blows
chilly upon your skin.">)>>
<OBJECT MOOSE
(LOC DESSERT-ROOM)
(OLDDESC "chocolate moose")
(NEWDESC "chocolate mousse")
(OLD-TO-NEW
"There's a sudden, belching \"poof\" of smoke, and the odor of burnt
chocolate.")
(NEW-TO-OLD
"\"Poof!\" The moose is suddenly enveloped in a thick plume of chocolaty
smoke.")
(DESCFCN MOOSE-F)
(SYNONYM MOOSE MOUSSE)
(ADJECTIVE CHOCOLATE)
(FLAGS ;NOA OLDBIT)
(ACTION MOOSE-F)>
<ROUTINE MOOSE-F ("OPTIONAL" (OARG <>) "AUX" (NOT-FIRST-TRANS T))
<COND (.OARG
<COND (<FSET? ,MOOSE ,OLDBIT>
<COND (<EQUAL? .OARG ,M-OBJDESC?>
<RTRUE>)>
<TELL CR
"An imposing, broad-shouldered adult moose, dark chocolate from hoof
to antler, stands here chewing its thick brown cud">
<COND (<EQUAL? ,HERE ,DESSERT-ROOM>
<TELL
" and blocking part of this narrow aisle">)>
<TELL ".">
<RTRUE>)
(T
<RFALSE>)>)
(<AND <NOUN-USED ,MOOSE ,W?MOOSE>
<TRANS-PRINT ,MOOSE T T>> ;"Means no CR in trans-print"
<COND (<NOT <IN? ,MOOSE ,HERE>>
<MOVE ,MOOSE ,HERE>
<TELL
" The large mammal lands awkwardly on the floor.">)>
<COND (<NOT <VERB? NO-VERB>> ;"was semied"
<CRLF>)>
<CRLF>
<FCLEAR ,MOOSE ,TAKEBIT>
<FCLEAR ,MOOSE ,NOA>)
(<NOUN-USED ,MOOSE ,W?MOUSSE>
<COND (<AND <NOT <FSET? ,MOOSE ,TRANSFORMED>>
<TRANS-PRINT ,MOOSE>>
<COND (<PRSO? ,MOOSE>
<PERFORM-PRSA ,MOOSE ,PRSI>)
(T
<PERFORM-PRSA ,PRSO ,MOOSE>)>
<MOVE ,PI ,FREEZER>
<TELL CR
"With the down-sizing of the big lug, you can see there are numbers
inside " D ,FREEZER ", rather than goodies." CR>
<RTRUE>)
(<NOT <VISIBLE? ,MOOSE>>
<RFALSE>)
(<TRANS-PRINT ,MOOSE> ;"now with own periods"
;<TELL ,PERIOD>)>
<FSET ,MOOSE ,TAKEBIT>
<FSET ,MOOSE ,NOA>)>
<COND (<FSET? ,MOOSE ,OLDBIT>
<COND (<VERB? TELL>
<TELL "He bellows out a sweet-smelling \"mooooo.\"" CR>
<STOP>)
(<VERB? EXAMINE>
<TELL
"Your teeth ache just looking at this massive bulk of ruminating mammalian
chocolate." CR>)
(<VERB? BOARD>
<TELL
"You slide off the slippery chocolatey broad back of the sturdy moose,
standing up to discover yourself filthy with chocolate." CR>)
(<AND <VERB? KILL>
<PRSI? ,BEAR-CLAUSE>>
<TELL "You scare him away..." CR>)
(<VERB? EAT>
<TELL
"You would end up with the hugest stomachache you've ever had!" CR>)>)
;"mousse"
(<VERB? EAT>
<TELL "Don't eat profits." CR>
;<TELL
"The " D ,MOOSE ", fluffed up to a delicate, supreme deliciosity, is
eye-closingly pucker wonderful, and now all gone." CR>)>>
<OBJECT PI
;(LOC DESSERT-ROOM)
(OLDDESC "22/7")
(NEWDESC "pie")
(OLD-TO-NEW
"The thing undergoes a deafening amount of number crunching.")
(NEW-TO-OLD "Pie to pi.")
(SYNONYM PI PIE FRACTION ;NUMBER ;NUMBERS)
(FLAGS NARTICLEBIT OLDBIT TAKEBIT)
(ACTION PI-F)>
<ROUTINE PI-F ()
<COND (<AND <OR <NOUN-USED ,PI ,W?PI ,W?NUMBER ,W?NUMBERS> ;"intum-f"
<NOUN-USED ,PI ,W?FRACTION>>
<NOT ,TRANS-PRINTED>
<TRANS-PRINT ,PI T>>
<FSET ,PI ,NARTICLEBIT>)
(<AND <NOUN-USED ,PI ,W?PIE>
<TRANS-PRINT ,PI>>
<FCLEAR ,PI ,NARTICLEBIT>)>
<COND (<FSET? ,PI ,OLDBIT>
<COND (<VERB? EAT>
<TELL
"After some amount of number crunching, you decide it's inedible." CR>)
(<VERB? EXAMINE READ>
<TELL
"You can see the number 22 frozen over the number 7." CR>)>)
;"pie"
(<VERB? EAT>
<TELL "Don't eat profits." CR>)>>
<OBJECT FREEZER
(LOC DESSERT-ROOM)
(DESC "your grocer's freezer")
(SYNONYM FREEZER)
(ADJECTIVE MY YOUR GROCER\'S)
(FLAGS NARTICLEBIT SEARCHBIT OPENBIT CONTBIT NDESCBIT)
(CAPACITY 300)
(ACTION FREEZER-F)>
<ROUTINE FREEZER-F ()
<COND (<VERB? BOARD>
<TELL
"Going cold turkey is admirable, but there is no monkey on your back." CR>)>>
;<ROUTINE SHELF-DESC (SHELF)
<COND (<FIRST? .SHELF>
<COND (<EQUAL? .SHELF ,FREEZER>
<TELL " Sitting in " D ,FREEZER " is">)
(T
<TELL " Shelves here contain">)>
<D-CONTENTS .SHELF>
;<TELL ,PERIOD>)
(T
<RFALSE>)>>
<ROOM MANICOTTI-ROOM
(LOC ROOMS)
(DESC "Aisle of Manicotti")
(OUT TO LET-ROOM)
(GLOBAL AISLE)
(FLAGS INDOORSBIT)
(ACTION MANICOTTI-ROOM-F)>
<ROUTINE MANICOTTI-ROOM-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"As its name indicates, this is the aisle where grains and cereals are
stocked.">
;<SHELF-DESC ,MANICOTTI-SHELF>
;<RTRUE>)
(<AND <EQUAL? .RARG ,M-END>
<IN? ,MURDERER ,HERE>
<NOT ,ROOM-DESC-PRINTED>
<NOT <AND <VERB? SHOW>
<PRSI? ,MURDERER>>>>
<TELL CR "The pallid gentleman continues his rampage by "
<PICK-NEXT <GET ,S-MURDERER 0>> " a package of "
<PICK-NEXT <GET ,S-MURDERER 1>>>
<TELL ,PERIOD>)>>
<GLOBAL S-MURDERER
<PTABLE
<LTABLE 2
"tearing his fangs into"
"murdering, in cold red dye #2,"
"devilishly ripping into"
"tucking into">
<LTABLE 2
"tortellini"
"Froot Loops"
"pasta primavera"
"sugar-frosted flakes"
"linguini"
"Count Chocula"
"rice crispies"
"spaghetti"
;"toasted oats">>>
<OBJECT MANICOTTI-SHELF
(LOC MANICOTTI-ROOM)
(SYNONYM SHELF SHELVES)
(DESC "shelves")
(FLAGS SURFACEBIT SEARCHBIT OPENBIT CONTBIT NDESCBIT PLURALBIT)
(CAPACITY 300)
;(ACTION SHELF-F)>
<OBJECT CEREALS
(LOC MANICOTTI-SHELF)
(DESC "infinite variety of cereals")
(SYNONYM GRAINS CEREAL CEREALS VARIETY)
(ADJECTIVE INFINITE)
(FLAGS TRYTAKEBIT VOWELBIT)
(ACTION CEREALS-F)>
<ROUTINE CEREALS-F ()
<COND (<VERB? EXAMINE>
<TELL
"It's dizzying to look at all the different brands. The shelf reaches a
vanishing point at either end of the long aisle." CR>)
(<VERB? TAKE>
<TELL "It deserves a longer shelf life." CR>)>>
<OBJECT MURDERER
(LOC MANICOTTI-ROOM)
(DESC "cereal murderer")
(DESCFCN MURDERER-F)
(SYNONYM MURDERER KILLER VAMPIRE VAMP MAN GENTLEMAN)
(ADJECTIVE CEREAL SERIAL)
(FLAGS ACTORBIT)
(ACTION MURDERER-F)>
<GLOBAL MINCE-EATEN <>>
<ROUTINE MURDERER-F ("OPTIONAL" (OARG <>))
<COND (.OARG
<COND (<EQUAL? .OARG ,M-OBJDESC?>
<RTRUE>)>
<TELL CR
"About halfway down the aisle there is a sinister and pallid-looking gentleman
in a dark tuxedo">
<COND (<NOT <FSET? ,MURDERER ,RMUNGBIT>>
<FSET ,MURDERER ,RMUNGBIT>
<TELL
". He appears to be systematically destroying boxes of cereal, taking
deep bites into them with his long fangs">)>
<TELL ,PERIOD>)
(<NOT <VISIBLE? ,MURDERER>>
<RFALSE>)
(<AND <ADJ-USED ,MURDERER ,W?SERIAL>
<NOT ,TRANS-PRINTED>>
<SETG TRANS-PRINTED T>
<TELL
"(True, he is both a cereal and a SERIAL murderer, but just knowing his
modus operandi doesn't defeat him.)" CR>
<COND (<NOT <VERB? NO-VERB>>
<CRLF>)
(<VERB? SET>
<RTRUE>)>)>
<COND (<VERB? GIVE> ;"handled in v-give"
<RFALSE>)
(<AND <TOUCHING? ,MURDERER>
<NOT ,MINCE-EATEN>>
<TELL
"The " D ,MURDERER " faces you open-mouthed, and his bad breath caused by
all his recent activity drives you back down the aisle." CR>)
(<OR <AND <VERB? PUT>
<EQUAL? <GET ,P-NAMW 0> ,W?STAKE>
<PRSO? ,STEAK>>
<AND <VERB? KILL>
<EQUAL? <GET ,P-NAMW 1> ,W?STAKE>
<PRSI? ,STEAK>>>
<FCLEAR ,STAKE ,OLDBIT>
<REMOVE ,STEAK>
<REMOVE ,MURDERER>
<UPDATE-SCORE>
<TELL
"With a powerful thrust, you drive the " D ,STEAK " deep into the heart of
the now horrified " D ,MURDERER ". He collapses to the floor, blood trickling
out of the sides of his mouth. Then he vanishes with a puff of pale blue
smoke." CR>)
(<OR <VERB? TELL TELL-ABOUT>
<AND <VERB? SHOW>
<PRSI? ,MURDERER>>>
<TELL
"He's too busy " <PICK-NEXT <GET ,S-MURDERER 0>> " a package of "
<PICK-NEXT <GET ,S-MURDERER 1>> " to notice." CR>
<STOP>)>>
<ROOM MUSSEL-ROOM
(LOC ROOMS)
(DESC "Musselaneous")
(OUT TO ILL-ROOM)
(GLOBAL AISLE)
(FLAGS INDOORSBIT)
(ACTION MUSSEL-ROOM-F)>
<ROUTINE MUSSEL-ROOM-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"This aisle is filled with various and sundry items.">
;<SHELF-DESC ,MUSSEL-SHELF>
;<RTRUE>)>>
<OBJECT MUSSEL-SHELF
(LOC MUSSEL-ROOM)
(DESC "shelves")
(SYNONYM SHELF SHELVES)
(FLAGS SURFACEBIT SEARCHBIT OPENBIT CONTBIT NDESCBIT)
(CAPACITY 300)
;(ACTION SHELF-F)>
<OBJECT MUSSELS
(LOC MUSSEL-SHELF)
(OLDDESC "mussels")
(NEWDESC "muscles")
(OLD-TO-NEW
"You feel yourself undergo a Hulkian physical transformation, with material
ripping and buttons popping and the whole bit.")
(NEW-TO-OLD
"You grow faint and very weak for a few moments and nearly pass out, then fade
back in with the realization that your clothes fit you more loosely now.
A clump of mussels falls to the floor.")
(SYNONYM MUSSELS MUSSEL MUSCLE MUSCLES CLUMP)
(ADJECTIVE MY YOUR)
(FLAGS OLDBIT TAKEBIT ;NARTICLEBIT PLURALBIT)
(ACTION MUSSELS-F)>
<ROUTINE MUSSELS-F ()
<COND (<AND <NOUN-USED ,MUSSELS ,W?MUSSELS ,W?MUSSEL ,W?CLUMP>
<TRANS-PRINT ,MUSSELS T>>
<MOVE ,MUSSELS ,HERE>)
(<AND <NOUN-USED ,MUSSELS ,W?MUSCLE ,W?MUSCLES>
<TRANS-PRINT ,MUSSELS>>
<MOVE ,MUSSELS ,PROTAGONIST>)>
<COND (<FSET? ,MUSSELS ,OLDBIT>
<COND (<VERB? EAT MUNG OPEN>
<TELL
"The shells are too hard to open." CR>)
(<VERB? SMELL>
<TELL "Like mussels gone bad." CR>)
(<VERB? EXAMINE>
<TELL
"The mussels, oozing with glop, look and smell like they've long
passed their expiration date. They may have been once used as bait-and-switch,
but now they're a blight on the store." CR>)>)
;"muscles"
(<VERB? EAT>
<TELL "Auto-canibalism is not the answer." CR>)>>
<OBJECT SAIL
(LOC MUSSEL-SHELF)
(OLDDESC "sail")
(NEWDESC "sale")
(OLD-TO-NEW
"You hear the distant ring-ring of cash registers.")
(NEW-TO-OLD
"A brief but strong wind whips through")
(SYNONYM SAIL SALE)
(FLAGS OLDBIT TAKEBIT SURFACEBIT SEARCHBIT OPENBIT CONTBIT)
(CAPACITY 20)
(ACTION SAIL-F)>
<ROUTINE SAIL-F ()
<COND (<AND <NOUN-USED ,SAIL ,W?SAIL>
<TRANS-PRINT ,SAIL T T>>
<COND (<NOT <EQUAL? ,HERE ,CELLAR-ROOM>> ;"ie, in an aisle?"
<TELL " your aisle">)
(T
<TELL " the air">)>
<TELL ,PERIOD ;CR>)
(<NOUN-USED ,SAIL ,W?SALE>
<TRANS-PRINT ,SAIL>)>
<COND (<FSET? ,SAIL ,OLDBIT>
<COND (<VERB? EXAMINE>
<TELL
"This is a large, rainbow-colored sail, all folded up and wrapped in plastic. ">
<RFALSE>)
(<VERB? OPEN REMOVE>
<TELL "The plastic's too tough." CR>)>)>>
;<OBJECT CHEWS
(LOC MUSSEL-SHELF)
(OLDDESC "chews")
(NEWDESC "choose")
(SYNONYM CHEWS CHOOSE TOBACCO)
(ADJECTIVE CHEWING)
(FLAGS OLDBIT)
(ACTION CHEWS-F)>
;<ROUTINE CHEWS-F ()
<COND (<OR <NOUN-USED ,CHEWS ,W?CHEWS ,W?TOBACCO>
<ADJ-USED ,CHEWS ,W?CHEWING>>
<FSET ,CHEWS ,OLDBIT>
<FCLEAR ,CHEWS ,NARTICLEBIT>
<FSET ,CHEWS ,PLURALBIT>)
(<NOUN-USED ,CHEWS ,W?CHOOSE>
<FCLEAR ,CHEWS ,OLDBIT>
<FSET ,CHEWS ,NARTICLEBIT>
<FCLEAR ,CHEWS ,PLURALBIT>)>>
<OBJECT TACKS
(LOC MUSSEL-SHELF)
(OLDDESC "tacks")
(NEWDESC "tax")
(OLD-TO-NEW
"You hear the distant ring-ring of cash registers.")
(NEW-TO-OLD
"Thumb tacks suddenly begin raining down to the floor.")
(SYNONYM TACK TACKS TAX ;BOX)
(FLAGS TAKEBIT OLDBIT PLURALBIT)
(ACTION TACKS-F)>
<ROUTINE TACKS-F ()
<COND (<AND <NOUN-USED ,TACKS ,W?TACKS ,W?TACK>
<TRANS-PRINT ,TACKS T>>
<FSET ,TACKS ,PLURALBIT>)
(<AND <NOUN-USED ,TACKS ,W?TAX>
<TRANS-PRINT ,TACKS>>
<FCLEAR ,TACKS ,PLURALBIT>)>
<RFALSE>>
<ROOM BRITISH-ROOM
(LOC ROOMS)
(DESC "British Aisle")
(OUT TO MUSSEL-ROOM)
(GLOBAL SIGN AISLE)
(FLAGS INDOORSBIT)
(ACTION BRITISH-ROOM-F)>
<ROUTINE BRITISH-ROOM-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"The floor here is richly painted in the bold colours of Brittania.">)>>
<OBJECT BRITISH-SHELF
(LOC BRITISH-ROOM)
(DESC "shelf")
(SYNONYM SHELF SHELVES)
(FLAGS SURFACEBIT SEARCHBIT OPENBIT CONTBIT NDESCBIT)
(CAPACITY 300)
(ACTION BRITISH-SHELF-F)>
<ROUTINE BRITISH-SHELF-F ()
<COND (<VERB? LOOK-INSIDE EXAMINE>
<COND (<FSET? ,PUTTING ,OLDBIT>
<TELL
"An avalanche of boxes slopes down from the shelf">)
(T
<TELL
"A neat row of pudding fills the shelf">)>
<TELL ,PERIOD>)>>
<OBJECT PUTTING
(LOC BRITISH-ROOM)
(OLDDESC "Putting Section")
(NEWDESC "Pudding Section")
(OLD-TO-NEW
"The boxes begin swirling into a dark, menacing whirlwind, causing you
to cover yourself up defensively. In an instant there is again calm, with
order having been restored to the aisle.")
(NEW-TO-OLD
"There is a deep rumbling noise which travels along the aisle, shaking the
boxes down from the shelves into a disorderly heap.")
(DESCFCN PUTTING-F)
(SYNONYM PUTTING PUDDING SECTION)
(ADJECTIVE PUTTING PUDDING)
(FLAGS OLDBIT TRYTAKEBIT ;NDESCBIT)
(ACTION PUTTING-F)>
<ROUTINE PUTTING-F ("OPTIONAL" (OARG <>))
<COND (.OARG
<COND (<EQUAL? .OARG ,M-OBJDESC?>
<RTRUE>)>
<TELL CR "Under a large sign, ">
<COND (<FSET? ,PUTTING ,OLDBIT>
<TELL
"a box boy is frantically filling and overfilling
the shelves with boxes, which are spilling over into the aisle and blocking
the way">)
(T
<TELL
"a wide variety of puddings are neatly stacked upon the shelves">)>
<TELL ,PERIOD>)
(<AND <OR <NOUN-USED ,PUTTING ,W?PUTTING>
<ADJ-USED ,PUTTING ,W?PUTTING>>
<TRANS-PRINT ,PUTTING T>>
<MOVE ,BOX-BOY ,HERE>
<MOVE ,BOXES ,HERE> ;"from british-shelf" )
(<OR <NOUN-USED ,PUTTING ,W?PUDDING>
<ADJ-USED ,PUTTING ,W?PUDDING>>
<COND (<NOT <VISIBLE? ,PUTTING>>
<RFALSE>)
(<NOT <FSET? ,PUTTING ,TRANSFORMED>>
<TRANS-PRINT ,PUTTING>
<MOVE ,ANTS ,HERE>
<TELL
"Having tidied up the place, you can now see a trail of ants crawling along
the aisle floor." CR>)
(T
<TRANS-PRINT ,PUTTING>)>
<FCLEAR ,PUTTING ,OLDBIT>
<MOVE ,BOXES ,BRITISH-SHELF>
<REMOVE ,BOX-BOY>)>
<COND (<FSET? ,PUTTING ,OLDBIT>
<COND (<VERB? EXAMINE>
<TELL
"An avalanche of boxes tumble down as the box boy keeps putting new ones on
the shelves." CR>)
(<VERB? TAKE>
<TELL "The boxes are too bulky." CR>)>)
(<VERB? TAKE>
<COND (,TRANS-PRINTED
<RTRUE>)>
<TELL "They're best left on the shelf." CR>)>>
<OBJECT BOXES
(LOC BRITISH-ROOM)
(DESC "cardboard boxes")
(SYNONYM BOX BOXES)
(ADJECTIVE CARDBOARD UNMARKED)
(FLAGS TRYTAKEBIT NDESCBIT PLURALBIT)
(ACTION BOXES-F)>
<ROUTINE BOXES-F ()
<COND (<AND <VERB? MOVE TAKE>
<IN? ,BOX-BOY ,HERE>>
<TELL
"The " D ,BOX-BOY " grabs the box from you and now is putting it back on the
overcrowded shelf." CR>)
(<AND <VERB? PUT PUT-ON>
<PRSI? ,BOXES>>
<WASTES>)
(<VERB? TAKE>
<COND (<FSET? ,PUTTING ,OLDBIT>
<TELL "You don't really need 'em." CR>)
(T
<PERFORM ,V?TAKE ,PUTTING>
<RTRUE>)>)
(<VERB? OPEN>
<TELL "They're all too tightly bound up." CR>)
(<VERB? EXAMINE>
<COND (<FSET? ,PUTTING ,OLDBIT>
<TELL "They are all unmarked " D ,BOXES "." CR>)
(T
<PERFORM ,V?EXAMINE ,PUTTING>
<RTRUE>)>)>>
<OBJECT BOX-BOY
(LOC BRITISH-ROOM)
(DESC "box boy")
(SYNONYM BOY)
(ADJECTIVE BOX)
(FLAGS ACTORBIT NDESCBIT)
(ACTION BOX-BOY-F)>
<ROUTINE BOX-BOY-F ()
<COND (<VERB? TELL>
<TELL "The blockhead will not answer." CR>
<STOP>)
(<VERB? EXAMINE>
<TELL
"The entire body of the boy is made out of various sized boxes." CR>)>>
<ROOM LET-ROOM
(LOC ROOMS)
(DESC "Meets")
(OUT TO BRITISH-ROOM)
(GLOBAL AISLE)
(FLAGS INDOORSBIT)
(ACTION LET-ROOM-F)>
<ROUTINE LET-ROOM-F (RARG)
<COND (<AND <EQUAL? .RARG ,M-ENTER>
<NOT <FSET? ,LET-ROOM ,TOUCHBIT>>>
<QUEUE I-BRAT -1>)
(<EQUAL? .RARG ,M-LOOK>
<TELL
"This is where people tend to run into each other....">
;<SHELF-DESC ,LET-SHELF>
;<RTRUE>)>>
<OBJECT STEAK
(LOC LET-SHELF)
(OLDDESC "steak")
(NEWDESC "stake")
(OLD-TO-NEW
"Under your gaze, the meat starts sizzling and smoking wildly, licking flames
into the air till nothing is left to it but a charred and pointed stick.")
(NEW-TO-OLD "Shazam! Meet the meat.")
(SYNONYM STEAK STAKE MEAT STICK)
(FLAGS OLDBIT TAKEBIT)
(ACTION STEAK-F)>
<ROUTINE STEAK-F ()
<COND (<NOUN-USED ,STEAK ,W?STEAK ,W?MEAT>
<TRANS-PRINT ,STEAK T>)
(<NOUN-USED ,STEAK ,W?STAKE ,W?STICK>
<TRANS-PRINT ,STEAK>)>
<COND (<FSET? ,STEAK ,OLDBIT>
<COND (<VERB? EAT>
<TELL "The meat is too tough." CR>)>)
;"stake"
(<VERB? EAT>
<TELL "Stakes and stones are inedible." CR>)
(<AND <VERB? PUT>
<FSET? ,PRSI ,ACTORBIT>
<PRSO? ,STEAK>>
<PERFORM ,V?KILL ,PRSI ,PRSO>
<RTRUE>)>>
<OBJECT MINCE
(LOC LET-SHELF)
(OLDDESC "mince")
(NEWDESC "mints")
(OLD-TO-NEW
"You catch a whiff of fresh little candies as the mince goes to pieces
and becomes white before your eyes.")
(NEW-TO-OLD
"You hear the tortured \"moo\" of a cow in the distance.")
(SYNONYM MINCE MEAT MINT MINTS CANDY CANDIES)
(ADJECTIVE MINCE FRESH LITTLE)
(FLAGS OLDBIT TAKEBIT)
(ACTION MINCE-F)>
<ROUTINE MINCE-F ()
<COND (<AND <NOUN-USED ,MINCE ,W?MINCE ,W?MEAT>
<TRANS-PRINT ,MINCE T>
;<ADJ-USED ,MINCE ,W?MEAT>>
<FCLEAR ,MINCE ,PLURALBIT>
<FSET ,MINCE ,NARTICLEBIT>)
(<AND <OR <NOUN-USED ,MINCE ,W?MINTS ,W?MINT ,W?CANDIES>
<NOUN-USED ,MINCE ,W?CANDY>
<ADJ-USED ,MINCE ,W?LITTLE>>
<TRANS-PRINT ,MINCE>>
<FSET ,MINCE ,PLURALBIT>
<FCLEAR ,MINCE ,NARTICLEBIT>)>
<COND (<FSET? ,MINCE ,OLDBIT>
<COND (<VERB? EAT>
<TELL "The mince is too tough." CR>)>)
;"mints"
(<VERB? EAT>
<TELL "Your breath isn't that bad to need them." CR>)>>
<OBJECT BRAT
;(LOC LOCAL-GLOBALS)
(OLDDESC "worst brat")
(NEWDESC "bratwurst")
(DESCFCN BRAT-F)
(SYNONYM BRAT WORST WURST BRATWURST GIRL SAUSAGE NIECE)
(ADJECTIVE BRAT WORST LITTLE THEIR)
(FLAGS ACTORBIT FEMALEBIT TRYTAKEBIT TAKEBIT CONTBIT OPENBIT
SEARCHBIT OLDBIT)
(GENERIC GEN-GIRL)
(ACTION BRAT-F)>
<ROUTINE BRAT-F ("OPTIONAL" (OARG <>))
<COND (.OARG
<COND (<FSET? ,BRAT ,OLDBIT>
<COND (<EQUAL? .OARG ,M-OBJDESC?>
<RTRUE>)>
<TELL CR
"The girl is busy here throwing a tantrum.">
<RTRUE>)
(T
<RFALSE>)>)
(<NOT <VISIBLE? ,BRAT>>
<RFALSE>)
(<OR <NOUN-USED ,BRAT ,W?BRAT ,W?WORST ,W?GIRL>
<ADJ-USED ,BRAT ,W?WORST ,W?LITTLE>>
<COND (<NOT <FSET? ,BRAT ,OLDBIT>>
<FSET ,BRAT ,OLDBIT>
<SETG TRANS-PRINTED T>
<TELL
"The sausage suddenly sprouts legs, and is transformed into the form of
a small girl (thereby shattering the myth about sugar and spice and
everything nice). ">
<COND (<HELD? ,BRAT>
<TELL
"She fiercely struggles from your grip and">)
;(<NOT <IN? ,BRAT ,HERE>>
<TELL "She climbs o">
<COND (<FSET? <LOC ,BRAT> ,SURFACEBIT>
<TELL "ff">)
(T
<TELL "ut of">)>
<TELL T <LOC ,BRAT>>)
(T
<TELL "She">)>
<TELL " sprints away">
<COND (<NOT <EQUAL? ,HERE ,CELLAR-ROOM>>
<TELL " down the aisle">)>
<COND (<AND <IN? ,ANTS ,HERE>
<NOT <FSET? ,ANTS ,OLDBIT>>>
<UPDATE-SCORE>
<TELL
" into the waiting hands of her aunts. They thank you, then leave." CR>
<REMOVE ,ANTS>
<REMOVE ,BRAT>
<DEQUEUE I-BRAT>
<DEQUEUE I-ANTS>
<RTRUE>)
(T
<TELL " and out of sight">)>
<TELL ,PERIOD>
<REMOVE ,BRAT>
<SETG BRAT-C 5>
<QUEUE I-BRAT -1>
<RTRUE>)>
<FCLEAR ,BRAT ,NARTICLEBIT>
<FSET ,BRAT ,ACTORBIT>
<FSET ,BRAT ,FEMALEBIT>
<FCLEAR ,RIBBON ,INVISIBLE>
<FSET ,BRAT ,TRYTAKEBIT>
<FSET ,BRAT ,CONTBIT>)
(<NOUN-USED ,BRAT ,W?BRATWURST ,W?WURST ,W?SAUSAGE>
<COND (<FSET? ,BRAT ,OLDBIT>
<SETG TRANS-PRINTED T>
<COND (<NOT <FSET? ,BRAT ,TRANSFORMED>>
<UPDATE-SCORE>)>
<FSET ,BRAT ,TRANSFORMED>
<TELL "The little girl">
<COND (<NOT <G? ,BRAT-C 5>>
<TELL " begins running away in horror. She">)>
<TELL
" tumbles head over heels to the floor in a blur, and then you observe a
sausage come rolling to a stop." CR>
<COND (<NOT <VERB? NO-VERB>>
<CRLF>)>)>
<DEQUEUE I-BRAT>
<FCLEAR ,BRAT ,CONTBIT>
<FCLEAR ,BRAT ,TRYTAKEBIT>
<FCLEAR ,BRAT ,OLDBIT>
<FCLEAR ,BRAT ,ACTORBIT>
<FCLEAR ,BRAT ,FEMALEBIT>
<FSET ,BRAT ,NARTICLEBIT>
<FSET ,RIBBON ,INVISIBLE>)>
<COND (<FSET? ,BRAT ,OLDBIT>
<COND (<VERB? EXAMINE>
<TELL
"You notice the little girl is wearing a " D ,RIBBON " with something written on it." CR>)
(<VERB? TELL>
<TELL
"She tilts her head up toward, you and issues a loud, mean-spirited raspberry." CR>
<STOP>)
(<VERB? TAKE>
<TELL
"Dashing between your legs and screaming bloody murder, the girl whirls you
'round in a violent twist." CR>)>)
;"bratwurst"
(<VERB? EAT>
<TELL "Very spicy." CR>)>>
<GLOBAL BRAT-C 0>
<GLOBAL RESUME-BRAT <>>
<ROUTINE I-BRAT ()
;<COND (<EQUAL? ,HERE ,BRITISH-ROOM>
<RFALSE>)>
<INC BRAT-C>
<COND (<EQUAL? ,BRAT-C 1>
<MOVE ,BRAT ,HERE>
<TELL CR
"You notice a blur of colorful lace and flowing blond hair come rolling
off one of the shelves. A little girl stands at your feet." CR>)
(<AND <L? ,BRAT-C 5> ;"2 3 4"
<IN? ,BRAT ,HERE>>
<TELL CR <PICK-NEXT <GET ,S-BRAT 0>> " little girl "
<PICK-NEXT <GET ,S-BRAT 1>> ,PERIOD>)
(<AND <EQUAL? ,BRAT-C 5>
<IN? ,BRAT ,HERE>>
<REMOVE ,BRAT>
<TELL CR
"With a final karate chop to your leg, the little girl spirits off down the
aisle and out of sight." CR>)
(<AND <EQUAL? ,BRAT-C 9 16 21 27>
<NOT <IN? ,BRAT ,HERE>>
<NOT <EQUAL? ,HERE ,CELLAR-ROOM>>>
<MOVE ,BRAT ,HERE>
<TELL CR
"The screaming meemie of a girl comes out of nowhere, running down the aisle toward you." CR>
<COND (<AND <NOT <FSET? ,RIBBON ,RMUNGBIT>>
<NOT <FSET? ,BRAT ,TRANSFORMED>>>
<PERFORM ,V?EXAMINE ,BRAT>
<PERFORM ,V?EXAMINE ,RIBBON>)>
<RTRUE>)
(<AND <G? ,BRAT-C 5>
<IN? ,BRAT ,HERE>>
<REMOVE ,BRAT>
<TELL CR
"The girl, screaming at the top of her lungs, runs by you and out of
sight again." CR>)
(<G? ,BRAT-C 28>
<SETG BRAT-C 5>)>
<RTRUE>>
<GLOBAL S-BRAT
<PTABLE
<LTABLE 2
"Tattooing your knee caps with her little fists, the"
"Practicing field goals upon your shins, the"
"The">
<LTABLE 2
"starts throwing a tantrum"
"continues testing your threshold of pain"
"keeps on boxing your calves">>>
<OBJECT RIBBON
(LOC BRAT)
(DESC "blue ribbon")
(SYNONYM RIBBON)
(ADJECTIVE BLUE)
(FLAGS TRYTAKEBIT NDESCBIT)
(ACTION RIBBON-F)>
<ROUTINE RIBBON-F ()
<COND (<AND <VERB? TAKE>
<FSET? ,BRAT ,OLDBIT>>
<TELL "The " D ,BRAT " gives you a kick to the shins." CR>)
(<VERB? EXAMINE READ>
<FSET ,RIBBON ,RMUNGBIT>
<TELL
"It reads: \"Worst Brat.\"" CR>)>>
<OBJECT ANTS
;(LOC LOCAL-GLOBALS)
(OLDDESC "colony of ants")
(NEWDESC "aunts")
(OLD-TO-NEW
"Instantly, the little creatures become big creatures.")
(NEW-TO-OLD
"The ladies seem to vanish in their tracks.")
(DESCFCN ANTS-F)
(SYNONYM ANT ANTS COLONY AUNT AUNTS LINE LADIES WOMEN LADY)
(FLAGS TRYTAKEBIT OLDBIT)
(ACTION ANTS-F)>
<ROUTINE ANTS-F ("OPTIONAL" (OARG <>))
<COND (.OARG
<COND (<NOT <FSET? ,ANTS ,OLDBIT>>
<COND (<EQUAL? .OARG ,M-OBJDESC?>
<RTRUE>)>
<TELL CR
"A number of aunts in gaudy hats are here milling about.">
<RTRUE>)
(T
<RFALSE>)>)
(<AND <NOUN-USED ,ANTS ,W?ANT ,W?ANTS ,W?COLONY>
<TRANS-PRINT ,ANTS T>>
<DEQUEUE I-ANTS>
<FCLEAR ,ANTS ,ACTORBIT>
<FSET ,ANTS ,PLURALBIT>)
(<AND <NOUN-USED ,ANTS ,W?AUNT ,W?AUNTS ,W?LADIES>
<TRANS-PRINT ,ANTS>>
<COND (<G? ,ANTS-C 5>
<SETG ANTS-C 5>)> ;"will leave on this turn"
<QUEUE I-ANTS -1>
<FSET ,ANTS ,ACTORBIT>
<FSET ,ANTS ,PLURALBIT>)>
<COND (<FSET? ,ANTS ,OLDBIT>
<COND (<VERB? EXAMINE>
<TELL
"They're crawling in a line down the aisle." CR>)
(<VERB? TAKE>
<TELL "They're untakeable." CR>)>)
;"aunts"
(<VERB? EXAMINE>
<TELL
"They are milling about, talking in high falsetto voices with British
accents about the latest sales, and inquiring of each other where their
little niece Emily is." CR>)
(<VERB? TELL>
<TELL "They are too busy gossiping among themselves." CR>
<STOP>)>>
<GLOBAL ANTS-C 0>
<GLOBAL RESUME-ANTS <>>
<ROUTINE I-ANTS ()
<COND (;<EQUAL? ,HERE ,BRITISH-ROOM>
<AND <IN? ,BRAT ,HERE>
<FSET? ,BRAT ,OLDBIT>>
<RFALSE>)>
<INC ANTS-C>
<COND (<EQUAL? ,ANTS-C 1>
<MOVE ,ANTS ,HERE>
<TELL CR
"The aunts start milling." CR>)
(<AND <L? ,ANTS-C 5> ;"2 3 4"
<IN? ,ANTS ,HERE>>
<TELL CR
"The milling aunts are gawking and talking among themselves." CR>)
(<AND <G? ,ANTS-C 4> ;"5 thru 27"
<IN? ,ANTS ,HERE>>
<REMOVE ,ANTS>
<TELL CR
"Finding nothing of interest here, the aunts walk in a line around the corner
of the aisle and out of sight." CR>)
(<AND <EQUAL? ,ANTS-C 9 15 21 26>
<NOT <IN? ,ANTS ,HERE>>
<NOT <EQUAL? ,HERE ,CELLAR-ROOM>>>
<MOVE ,ANTS ,HERE>
<TELL CR
"The motley line of aunts comes strolling into your aisle." CR>)
(<G? ,ANTS-C 28>
<SETG ANTS-C 5>)>
<RTRUE>>
<OBJECT LET-SHELF
(LOC LET-ROOM)
(DESC "shelf")
(SYNONYM SHELF SHELVES)
(FLAGS SURFACEBIT SEARCHBIT OPENBIT CONTBIT NDESCBIT)
(CAPACITY 300)