-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbigtop.zil
2420 lines (2267 loc) · 66.7 KB
/
bigtop.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
"BIGTOP for BALLYHOO: Copyright (C)1984 Infocom, Inc."
<OBJECT CIRCUS
(IN GLOBAL-OBJECTS)
(DESC "circus")
(SYNONYM SHOW ACT FEAT)
(ADJECTIVE CIRCUS BALLYHOO)
(FLAGS NDESCBIT)
(ACTION CIRCUS-F)>
;"RMUNGBIT = guard told your about circus/munrab"
;<OBJECT CIRCUS
(IN GLOBAL-OBJECTS)
(DESC "The Traveling Circus That Time Forgot, Inc.")
(SYNONYM CIRCUS FORGOT)
(ADJECTIVE TRAVELING TIME)
(FLAGS NDESCBIT)
;(ACTION CIRCUS-F)>
<ROUTINE CIRCUS-F ()
<COND (<AND <VERB? EXAMINE>
<EQUAL? ,HERE ,STANDS-ROOM>>
<TELL
"How the crowd's enjoying a show that's so hard to see is hard to see." CR>)>>
<ROOM UNDER-STANDS
(IN ROOMS)
(DESC "Under the Bleachers")
(SW PER EXIT-UNDER-STANDS)
(UP PER NOT-UNDER-STANDS)
(SOUTH PER EXIT-UNDER-STANDS)
(FLAGS ONBIT RLANDBIT INDOORSBIT)
(GLOBAL GRANDSTAND BIGTOP PATH)
(ACTION UNDER-STANDS-F)>
<ROUTINE UNDER-STANDS-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"You're standing between the underside of the " D ,GRANDSTAND " and the
side wall of the " D ,BIGTOP ". Not unexpectedly, the " D ,GROUND " here
is strewn with garbage. The only exit is ">
<COND (,WON-STANDS
<TELL "back under the tent">)
(T
<TELL "southwest">)>
<TELL ,PERIOD>)>>
<ROUTINE EXIT-UNDER-STANDS ()
<COND (<EQUAL? ,P-WALK-DIR ,P?SW>
<COND (,WON-STANDS
<TELL "The grandstand">
<TELL ,TELL-STANDS>
<TELL ", blocking the former exit." CR>
<RFALSE>)
(T
<RETURN ,WINGS>)>)
(<FSET? ,BIGTOP ,RMUNGBIT>
<PERFORM ,V?CRAWL-UNDER ,BIGTOP>
<RFALSE>)
(T
<TELL "You bump into the side wall of the " D ,BIGTOP "." CR>
<RFALSE>)>>
<ROUTINE NOT-UNDER-STANDS ()
<TELL "You're UNDER the stands, understand?" CR>
<SETG AWAITING-REPLY 7>
<ENABLE <QUEUE I-REPLY 2>>
<RFALSE>>
<OBJECT GARBAGE
(IN UNDER-STANDS)
(DESC "garbage")
(SYNONYM GARBAGE TRASH)
(FLAGS NDESCBIT NOA)
(ACTION GARBAGE-F)>
<ROUTINE GARBAGE-F ()
<COND (<VERB? SEARCH SEARCH-OBJECT-FOR EXAMINE DIG MOVE LOOK-UNDER
LOOK-INSIDE>
<COND (<IN? ,TICKET ,LOCAL-GLOBALS>
<MOVE ,TICKET ,HERE>
<SETG P-IT-OBJECT ,TICKET>
<SETG SCORE <+ ,SCORE 10>>
<TELL
"Your foray into " D ,GARBAGE " reclamation pays off, as you turn up
the unmarked ticket of some luckless circus-goer." CR>)
(<AND <IN? ,GRANOLA ,LOCAL-GLOBALS>
<NOT <FSET? ,GRANOLA ,RMUNGBIT>>
,WON-STANDS>
<SETG P-IT-OBJECT ,GRANOLA>
<MOVE ,GRANOLA ,HERE>
<TELL
"Recalling the precise trajectory of your fallen " D ,GRANOLA ", you
uncover it after a brief excavation." CR>)
(<VERB? EXAMINE>
<RFALSE>)
(T
<TELL "You merely raise a stench." CR>)>)
(<VERB? CLEAN>
<V-DIG>)
(<VERB? SMELL>
<TELL
"It smells vaguely of " <PICK-ONE ,FOODS> " and " <PICK-ONE ,FOODS> "." CR>)>>
<OBJECT GRANDSTAND
(IN LOCAL-GLOBALS)
(DESC "grandstand")
(SYNONYM SEATS SEAT STAND STANDS)
(ADJECTIVE GRANDSTAND BLEACHER BLUES BENCH RICKETY)
(FLAGS NDESCBIT)
(ACTION GRANDSTAND-F)>
<ROUTINE GRANDSTAND-F ()
<COND (<AND <VERB? EXAMINE>
<EQUAL? ,HERE ,UNDER-STANDS>>
<SETG PRSO ,ROOMS>
<PERFORM ,V?LOOK-UP ,PRSO>
<RTRUE>)
(<VERB? CLIMB-UP CLIMB-FOO THROUGH BOARD>
<COND (<EQUAL? ,HERE ,RING>
<DO-WALK ,P?NORTH>)
(T
<DO-WALK ,P?UP>)>)
(<VERB? CLIMB-DOWN>
<COND (<EQUAL? ,HERE ,UNDER-STANDS>
<DO-WALK ,P?UP>)
(<EQUAL? ,HERE ,STANDS-ROOM>
<DO-WALK ,P?DOWN>)
(T
<TELL ,LOOK-AROUND CR>)>)
(<VERB? BOARD>
<COND (<EQUAL? ,HERE ,UNDER-STANDS ,WINGS>
<DO-WALK ,P?UP>)
(<EQUAL? ,HERE ,RING>
<DO-WALK ,P?NORTH>)
(T
<TELL ,LOOK-AROUND CR>)>)>>
<ROOM STANDS-ROOM
(IN ROOMS)
(DESC "Standing Room Only")
(NORTH PER N-OOF)
(SOUTH PER S-OOF)
(EAST PER E-OOF)
(WEST PER W-OOF)
(UP PER N-OOF)
(DOWN PER S-OOF)
(FLAGS ONBIT RLANDBIT INDOORSBIT)
(GLOBAL BIGTOP GRANDSTAND TIGHTROPE-OBJECT)
(ACTION STANDS-ROOM-F)>
<ROUTINE STANDS-ROOM-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<COND (,SIT-IN-STANDS
<TELL
"You're in the \"blues,\" sitting" ,HIGH-ABOVE ". ">)>
<COND (<AND <NOT <VERB? WALK>>
<NOT <EQUAL? ,TLOC 12>>>
<TELL
"You know the exit from the " D ,GRANDSTAND " to be vaguely eastward and
down. ">)>
<TELL
"All around you the crowd is in a state of pandemonium">
<COND (<NOT ,SIT-IN-STANDS>
<TELL
". The paths of least resistance are ">
<COND (<EQUAL? ,TLOC 3 9>
<TELL <GET ,PATHS 1>>)
(<EQUAL? ,TLOC 11>
<TELL <GET ,PATHS 5>>)
(<EQUAL? ,TLOC 8>
<TELL <GET ,PATHS 2>>)
(<EQUAL? ,TLOC 12>
<TELL <GET ,PATHS 6>>)
(T
<TELL <GET ,PATHS ,TLOC>>)>)>
<TELL ,PERIOD>)
(<EQUAL? .RARG ,M-END>
<COND (<AND <FSET? ,HAWKER ,RMUNGBIT>
<EQUAL? ,TLOC ,LOST-MONEY-LOC>>
<SETG WON-STANDS T>
<SETG SCORE <+ ,SCORE 10>>
<TELL CR
"A man in the audience suddenly hails you, tossing the " D ,GRANOLA " in your
" D ,INTDIR ". It glances off " D ,HEAD ", falls through the stands and
right before it hits the ground, in a cold sweat you ">
<WAKE-UP>)
(<AND <EQUAL? ,TLOC 12>
<EQUAL? ,POCKET-CHANGE 1841>>
<TELL CR
"Suddenly a hawker appears at the end of the row and you flag him down. ">
<MOVE ,HAWKER ,HERE>
<HAWKER-GESTURES>
<CRLF>
;<DISABLE <INT I-STANDS>>
<SETG P-DOLLAR-FLAG T>
<SETG P-AMOUNT 185>
<PERFORM ,V?GIVE ,INTNUM ,HAWKER>
<SETG P-IT-OBJECT ,GLOBAL-MONEY>
<RTRUE>)
(<AND <PROB 50>
<NOT ,SIT-IN-STANDS>>
<TELL CR
"The bank of people above you shouts, in chorus, \"" <PICK-ONE ,BITCHES>
"!\"" CR>)>)
(<EQUAL? .RARG ,M-BEG>
<COND (<AND <VERB? SIT WALK>
,SIT-IN-STANDS>
<TELL "But you are seated." CR>)
(<VERB? SIT>
<TELL "\"Oof! Get off of me!\"" CR>)>)>>
<ROUTINE HAWKER-GESTURES ()
<TELL
"The hawker can barely hear you above the crowd noise. He flashes one finger,
then eight fingers, then five fingers at you, and gestures to pass the money
through the crowd." CR>>
<GLOBAL HAWKER-DIRECTION <>>
<ROUTINE I-STANDS ()
<ENABLE <QUEUE I-STANDS -1>>
<SETG STANDS-C <+ ,STANDS-C 1>>
<COND (<AND <EQUAL? ,STANDS-C 12>
<EQUAL? ,HERE ,STANDS-ROOM>
<EQUAL? ,POCKET-CHANGE 1656>> ;"i.e. next move aft paying"
<TELL CR
"The audience settles back down to a state of pandemonium." CR>
<RTRUE>)
(<AND <IN? ,HAWKER ,HERE>
<EQUAL? ,HERE ,STANDS-ROOM>>
<MOVE ,HAWKER ,LOCAL-GLOBALS>
<TELL CR "Trudging ">
<COND (<PROB 50>
<TELL "down">
<SETG HAWKER-DIRECTION ,P?DOWN>)
(T
<SETG HAWKER-DIRECTION ,P?UP>
<TELL "up">)>
<SETG FOLLOW-FLAG 17>
<ENABLE <QUEUE I-FOLLOW 2>>
<TELL "ward, the hawker disappears into the " D ,CROWD>
<COND (<VERB? WALK-TO FOLLOW>
<TELL " before you can reach him">)>
<TELL ,PERIOD>
<RTRUE>)
(<EQUAL? ,STANDS-C 2 3>
<TELL CR "You hear a loud ">
<COND (<EQUAL? ,STANDS-C 2>
<TELL "growl">)
(T
<TELL "roar">)>
<TELL " nearby." CR>)
(<EQUAL? ,STANDS-C 4>
<TELL CR
"You realize the noise is your own stomach." CR>)
(<OR <EQUAL? ,STANDS-C 5>
<AND <G? ,STANDS-C 5>
<PROB 25>
<EQUAL? ,HERE ,STANDS-ROOM>
<NOT <EQUAL? ,STANDS-C 11 12 13>>
;<NOT <EQUAL? ,TLOC 13>>>>
<FSET ,HAWKER ,NDESCBIT>
<MOVE ,HAWKER ,HERE>
<TELL CR "A " D ,HAWKER " appears at the ">
<COND (<OR <EQUAL? ,TLOC 1 2 3>
<EQUAL? ,TLOC 7 8 9>>
<TELL "west">)
(T
<TELL "east">)>
<TELL
" end of your row, calling out in a sing-song manner, \"Get your "
<PICK-ONE ,FOODS> " here. Get your " <PICK-ONE ,FOODS> " here.\"" CR>)>>
<GLOBAL FOODS
<LTABLE 0
"tofu"
"popcorn"
"peanuts"
"cotton candy"
"granola bars"
"yogurt"
"New Coke"
"Old Coke">>
<OBJECT JUNK-FOOD
(IN LOCAL-GLOBALS)
(DESC "refreshment")
(SYNONYM CANDY COKE NUTS FOOD)
(ADJECTIVE PEANUTS YOGURT TOFU NEW OLD POPCORN COTTON REFRESHMENT)
(FLAGS NDESCBIT ;TAKEBIT TRYTAKEBIT EATBIT)
(ACTION JUNK-FOOD-F)>
;<GLOBAL FOOD-ORDERED <>>
;<GLOBAL ADJ-FOOD-ORDERED <>>
<ROUTINE JUNK-FOOD-F ()
<COND (<VERB? BUY>
;<SETG FOOD-ORDERED <GET ,P-NAMW 0>>
;<SETG ADJ-FOOD-ORDERED <GET ,P-ADJW 0>>
<COND (<AND <EQUAL? ,HERE ,STANDS-ROOM>
<IN? ,HAWKER ,HERE>>
<PERFORM ,V?TELL ,HAWKER>
<RTRUE>)
(<EQUAL? ,HERE ,STANDS-ROOM>
<TELL "The " D ,HAWKER "'s nowhere in sight." CR>)
(<AND <EQUAL? ,HERE ,WINGS>
<IN? ,HAWKER ,HERE>>
<COND (<FSET? ,HAWKER ,RMUNGBIT>
<TELL
"\"Sorry, I'm all sold out. I made a killing up there,\" he says, looking
exhausted but happy." CR>)
(T
<PERFORM ,V?TELL ,HAWKER>
<RTRUE>)>)
(<AND <EQUAL? ,HERE ,CON-AREA>
,DREAMING>
<TELL "You're not alone in your hunger." CR>)>)
(<OR <DONT-HANDLE? ,JUNK-FOOD>
<VERB? ASK-FOR ASK-ABOUT>>
<RFALSE>)
(<AND <EQUAL? ,HERE ,WINGS>
<IN? ,HAWKER ,HERE>>
<TELL "The only remnant of the">
<COND (<EQUAL? ,JUNK-FOOD ,PRSO>
<PRSO-PRINT>)
(T
<PRSI-PRINT>)>
<TELL " is ground into the " D ,HAWKER "'s uniform." CR>)>>
<OBJECT HAWKER
(IN LOCAL-GLOBALS)
(DESC "hawker")
(LDESC
"One lone hawker stands waiting in the wings, taking his break.")
(SYNONYM MAN HAWKER CONCES)
(FLAGS ACTORBIT PERSON NDESCBIT OPENBIT CONTBIT SEARCHBIT)
(ACTION HAWKER-F)>
;"RMUNGBIT = he's told you in wings about your nuts waiting for you at
TLOC 1 in stands"
<ROUTINE HAWKER-F ()
<COND (<PAY-HAWKER?>
<COND (<EQUAL? ,FOLLOW-FLAG 99>
<RFATAL>)
(T
<RTRUE>)>)
(<AND <VERB? FOLLOW WALK-TO>
<EQUAL? ,FOLLOW-FLAG 17>>
<DO-WALK ,HAWKER-DIRECTION>)
(<AND <VERB? EXAMINE>
<EQUAL? ,HERE ,WINGS>>
<TELL
"Yup, it's the same guy you encountered in the stands. He's empty-handed and
his uniform resembles modern art, a besplattered canvas of condiments." CR>)
(<AND <VERB? GIVE>
<PRSI? ,HAWKER>>
<PERFORM ,V?WAVE-AT ,HAWKER>
<RTRUE>)
(<AND <EQUAL? ,HERE ,STANDS-ROOM>
<TOUCHING? ,HAWKER>>
<CANT-REACH ,HAWKER>)
(<TALKING-TO? ,HAWKER>
<COND (<AND <EQUAL? ,HERE ,STANDS-ROOM>
<EQUAL? ,POCKET-CHANGE 1841>>
<ENABLE <QUEUE I-STANDS 2>> ;"Will leave on next turn"
<HAWKER-GESTURES>)
(T
<COND (<EQUAL? ,HERE ,STANDS-ROOM>
<COND (<VERB? WAVE-AT>
<TELL "He didn't notice you." CR>)
(T
<TELL
"The crowd noise completely drowns you out." CR>)>)
(<OR ;"not bought both granola and banana?"
<NOT <EQUAL? ,POCKET-CHANGE 1281>>
<FSET? ,HAWKER ,RMUNGBIT>>
<TELL "Exhausted, he ignores you." CR>)
(T
<FSET ,HAWKER ,RMUNGBIT>
<TELL
"\"Hey, you're the one I passed the granola bar to in the " D ,GRANDSTAND ". ">
<COND (<NOT ,ORDERED-GRANOLA>
<TELL
"I know that's not what you ordered, but that's all I had left. ">)>
<TELL
"Well, the guy that was sitting next to you is holding the granola for
you.\"" CR>)>)>
<STOP>)>>
;<COND (<OR ,FOOD-ORDERED
,ADJ-FOOD-ORDERED>
<TELL
"What? You say you'd really ordered">
<COND (<EQUAL? ,FOOD-ORDERED ,W?BAR>
<TELL " a ">)>
<COND (,ADJ-FOOD-ORDERED
<PRINTB ,ADJ-FOOD-ORDERED>)>
<COND (,FOOD-ORDERED
<TELL " ">
<PRINTB ,FOOD-ORDERED>)>
<TELL "? Sorry. ">)>
<OBJECT CROWD
(IN WINGS)
(DESC "crowd")
(SYNONYM CROWD PEOPLE)
(ADJECTIVE ;MOB AUDIENCE)
(FLAGS ACTORBIT PERSON NDESCBIT)
;(GERERIC GEN-BAR)
(ACTION CROWD-F)>
<ROUTINE CROWD-F ()
<COND (<AND <VERB? LISTEN>
<EQUAL? ,HERE ,STANDS-ROOM>>
<TELL "They're all madly screaming." CR>)
(<VERB? FOLLOW>
<COND (<AND <EQUAL? ,HERE ,CON-AREA>
<NOT <FSET? ,BESIDE-BIGTOP ,TOUCHBIT>>>
<DO-WALK ,P?EAST>)
(<AND <EQUAL? ,HERE ,WINGS>
<NOT <FSET? ,CON-AREA ,TOUCHBIT>>>
<DO-WALK ,P?SOUTH>)>)
(<OR <AND <EQUAL? ,HERE ,WINGS>
<NOT <FSET? ,CON-AREA ,TOUCHBIT>>>
<AND <EQUAL? ,HERE ,CON-AREA>
<RUNNING? I-BOOST>>>
<CROWD-GONE>)
(<TALKING-TO? ,CROWD>
<TELL
"You have neither the voice nor the talent to capture the " D ,CROWD "'s
attention." CR>
<STOP>)
(<PAY-HAWKER?>
<COND (<EQUAL? ,FOLLOW-FLAG 99>
<RFATAL>)
(T
<RTRUE>)>)
(<VERB? ;ENTER THROUGH>
<COND (<EQUAL? ,HERE ,MIDWEST>
<DO-WALK ,P?NORTH>)
(T
<V-WALK-AROUND>)>)
(<VERB? EXAMINE>
<TELL
"Each member appears to have been born precisely one minute apart
from the next." CR>)>>
<ROUTINE CROWD-GONE ()
<TELL "The " D ,CROWD "'s gone ">
<COND (<EQUAL? ,HERE ,CON-AREA>
<TELL "east">)
(T
<TELL "south">)>
<TELL ,PERIOD>>
<ROUTINE PAY-HAWKER? ()
<COND (<AND <EQUAL? ,POCKET-CHANGE 1841>
<IN? ,HAWKER ,HERE>
<PRSI? ,CROWD ,HAWKER>
<VERB? GIVE>>
<COND (<AND <PRSO? ,INTNUM>
,P-DOLLAR-FLAG>
<COND (<G? ,P-AMOUNT ,POCKET-CHANGE>
<TELL ,THAT-MUCH>
<RTRUE>)
(<EQUAL? ,P-AMOUNT 185>
<SETG POCKET-CHANGE 1656>
<MOVE ,HAWKER ,LOCAL-GLOBALS>
;<ENABLE <QUEUE I-STANDS 3>>
<SETG STANDS-C 10>
<SETG LOST-MONEY-LOC ,TLOC>
<TELL
"Your $1.85 is passed from hand to hand all the way down the row. As
the hawker pockets your money, he's suddenly engulfed by the crowd, which
erupts into a standing ovation. The state of riot panic continues for
several anxious moments." CR>)
(<AND <NOT <EQUAL? ,P-AMOUNT 185>>
,P-DOLLAR-FLAG>
<TELL "The man seemed to indicate $1.85." CR>)
(<PRSO? ,INTNUM ,DOLLAR ,GLOBAL-MONEY>
<SETG FOLLOW-FLAG 99>
<ENABLE <QUEUE I-FOLLOW 2>>
<SPECIFY-MONEY>
<RTRUE>)>)
(<PRSO? ,GLOBAL-MONEY>
<SETG P-DOLLAR-FLAG T>
<SETG P-AMOUNT 185>
<PERFORM ,V?GIVE ,INTNUM ,CROWD>
<SETG P-IT-OBJECT ,GLOBAL-MONEY>
<RTRUE>)
(T
<RFALSE>)>)
(T
<RFALSE>)>>
<GLOBAL DREAMING <>>
<GLOBAL STANDS-C 0>
<GLOBAL DREAM-C 0> ;"number of times you ask to be hypnotized"
<GLOBAL SIT-IN-STANDS T>
<GLOBAL MONEY-BEFORE-DREAM 0>
;<GLOBAL SCORE-BEFORE-DREAM 0>
;<GLOBAL MOVES-BEFORE-DREAM 0>
<GLOBAL TLOC 1>
<GLOBAL LOST-MONEY-LOC 0>
<GLOBAL WON-STANDS <>>
<GLOBAL PATHS
<PLTABLE
"down and east"
"up and east"
0
"up, down and west"
"up and west"
"down and west"
"up, down and east"
0
0
"up, down and west">>
<ROUTINE N-OOF ()
<COND (<OR <EQUAL? ,TLOC 2 4 5>
<EQUAL? ,TLOC 7 8 10>
<EQUAL? ,TLOC 11>>
<PLOW-F T>)
(T
<NO-GO 1>)>>
<ROUTINE S-OOF ()
<COND (<OR <EQUAL? ,TLOC 1 3 4>
<EQUAL? ,TLOC 6 7 9>
<EQUAL? ,TLOC 10 12>>
<PLOW-F>)
(T
<NO-GO 2>)>>
<ROUTINE E-OOF ()
<COND (<OR <EQUAL? ,TLOC 1 2 3>
<EQUAL? ,TLOC 7 8 9>>
<SCISSOR-F T>)
(T
<NO-GO 3>)>>
<ROUTINE W-OOF ()
<COND (<OR <EQUAL? ,TLOC 4 5 6>
<EQUAL? ,TLOC 10 11 12>>
<SCISSOR-F>)
(T
<NO-GO 4>)>>
<ROUTINE NO-GO (NUM)
<COND (<EQUAL? .NUM 1 2>
<TELL "You have no ">
<COND (<EQUAL? .NUM 1>
<TELL "up">)
(T
<TELL "down">)>
<TELL "ward mobility here">)
(T
<TELL "The crowd is impenetrable to the ">
<COND (<EQUAL? .NUM 3>
<TELL "east">)
(T
<TELL "west">)>)>
<TELL ,PERIOD>
<RFALSE>>
<GLOBAL BITCHES
<LTABLE 0
"Down in front"
"Move it"
"We can't see"
"Hey, park it">>
<ROUTINE SCISSOR-F ("OPTIONAL" (EAST? <>))
<FCLEAR ,STANDS-ROOM ,TOUCHBIT>
<COND (.EAST?
<SETG TLOC <+ ,TLOC 3>>)
(T
<SETG TLOC <- ,TLOC 3>>)>
<TELL
"The row of legs pivots away as you scissor awkwardly past." CR CR>
<RETURN ,STANDS-ROOM>>
<ROUTINE PLOW-F ("OPTIONAL" (UP? <>))
<FCLEAR ,STANDS-ROOM ,TOUCHBIT>
<TELL "You plow your way ">
<COND (.UP?
<TELL "up">
<SETG TLOC <- ,TLOC 1>>)
(T
<TELL "down">
<SETG TLOC <+ ,TLOC 1>>)>
<TELL "ward through the crowd">
<COND (<EQUAL? ,TLOC 13>
<TELL " all the way into the wings." CR CR>
<COND (<NOT <FSET? ,MONKEY ,RMUNGBIT>>
<FSET ,MONKEY ,RMUNGBIT>
<FCLEAR ,WINGS ,TOUCHBIT>
<MOVE ,ROAR ,LOCAL-GLOBALS>
<MOVE ,HAWKER ,LOCAL-GLOBALS>
<GOTO ,WINGS>
<CRLF>
<FCLEAR ,MONKEY ,NDESCBIT>
<MOVE ,MONKEY ,PROTAGONIST>
<TELL
"As you exhale a sigh of relief, a smallish and hairy animal inexplicably
plops down upon you from the upper reaches of the " D ,BIGTOP "." CR>
<RFALSE>)
(T
<RETURN ,WINGS>)>)
(T
<TELL ,PERIOD>
<CRLF>
<RETURN ,STANDS-ROOM>)>>
<OBJECT BIGTOP
(IN LOCAL-GLOBALS)
(DESC "big top")
(SYNONYM TOP TENT WALL BIGTOP)
(ADJECTIVE BIG SIDE CANVAS)
(FLAGS NDESCBIT TRYTAKEBIT)
(ACTION BIGTOP-F)>
;"RMUNGBIT = crawled in first time from midwest"
<ROUTINE BIGTOP-F ()
<COND (<VERB? CRAWL-UNDER BOARD>
<COND (<OR <EQUAL? ,HERE ,MIDWEST>
<AND <EQUAL? ,HERE ,UNDER-STANDS>
<FSET? ,BIGTOP ,RMUNGBIT>>>
<TELL
"You creep under the side wall of the " D ,BIGTOP>
<COND (<EQUAL? ,HERE ,UNDER-STANDS>
<TELL
", right where you crawled in before">)>
<TELL ,PERIOD>
<CRLF>
<FSET ,BIGTOP ,RMUNGBIT>
<COND (<EQUAL? ,HERE ,UNDER-STANDS>
<GOTO ,MIDWEST>)
(T
<GOTO ,UNDER-STANDS>)>)
(<EQUAL? ,HERE ,FAT-EAST ,FAT-WEST>
<SETG PRSO ,FAT>
<TELL-HIT-HEAD>)
(T
<TENT-BOUND>)>)
(<VERB? WALK-TO ;ENTER THROUGH>
<COND (<OR <EQUAL? ,HERE ,CON-AREA ,WINGS ,MIDWEST>
<EQUAL? ,HERE ,BESIDE-BIGTOP>>
<DO-WALK ,P?NORTH>)
(<OR <EQUAL? ,HERE ,WINGS ,RING ,DEN>
<EQUAL? ,HERE ,STANDS-ROOM ,UNDER-STANDS>>
<TELL ,LOOK-AROUND CR>)>)
(<VERB? LEAVE EXIT DISEMBARK>
<COND (<EQUAL? ,HERE ,WINGS ,RING>
<DO-WALK ,P?SOUTH>)
(<EQUAL? ,HERE ,DEN>
<DO-WALK ,P?EAST>)
(<EQUAL? ,HERE ,STANDS-ROOM ,UNDER-STANDS>
<V-WALK-AROUND>)
(T
<TELL ,LOOK-AROUND CR>)>)
(<AND <VERB? EXAMINE>
<NOT <EQUAL? ,HERE ,FAT-EAST ,FAT-WEST>>>
<TELL
"Soiled by endless miles of travel and heavily patched in places, the
wide blue-and-white stripes nevertheless rise up to">
<COND (<FSET? ,HERE ,INDOORSBIT>
<TELL
" meet at the top of the towering center pole." CR>)
(T
<TELL " the black sky above." CR>)>)
(<AND <EQUAL? ,HERE ,FAT-EAST ,FAT-WEST>
<VERB? LOOK-UNDER RAISE>>
<NOT-PEEP>)
(<AND <VERB? TAKE REMOVE>
<EQUAL? ,HERE ,FAT-EAST ,FAT-WEST>>
<KIND-OF-PERFORMER>)>>
<OBJECT CENTER-POLE
(IN LOCAL-GLOBALS)
(DESC "center pole")
(SYNONYM POLE SAWDUST)
(ADJECTIVE CENTER)
(FLAGS NDESCBIT)
(ACTION CENTER-POLE-F)>
<ROUTINE CENTER-POLE-F ()
<COND (<IS-NOUN? ,W?SAWDUST>
<SETG PRSO ,SAWDUST>
<RFALSE>)
(<AND <TOUCHING? ,CENTER-POLE>
<NOT <EQUAL? ,HERE ,RING>>>
<CANT-REACH ,CENTER-POLE>)
(<VERB? CLIMB-FOO CLIMB-UP CLIMB-ON>
<TELL
"You barely get off the " D ,GROUND " before you slide back down." CR>)>>
<OBJECT RING-OBJECT
(IN LOCAL-GLOBALS)
(DESC "ring")
(SYNONYM RING)
(ADJECTIVE SECOND PERFOR)
(FLAGS NDESCBIT)
(ACTION RING-OBJECT-F)>
<ROUTINE RING-OBJECT-F ()
<COND (<IS-NOUN? ,W?SECOND>
<PERFORM ,PRSA ,LION-CAGE ,PRSI>
<RTRUE>)
(T
<GLOBAL-ROOM-F>)>>
<OBJECT POLE
(IN NEAR-WAGON)
(DESC "fiberglass pole")
(FDESC
"Part of a narrow pole is sticking out from under the wagon.")
(SYNONYM POLE)
(ADJECTIVE ;LONG FIBERGLASS NARROW)
(FLAGS TAKEBIT)
(SIZE 80)>
<OBJECT BALLOON
(IN PLATFORM-2)
(DESC "balloon")
(FDESC
"Floating against the ceiling of the big top is a helium balloon.")
(SYNONYM BALLOON)
(ADJECTIVE RED HELIUM)
(FLAGS TAKEBIT TRANSBIT CONTBIT)
(SIZE 4)
(ACTION BALLOON-F)>
<ROUTINE BALLOON-F ()
<COND (<VERB? TAKE>
<FSET ,BALLOON ,TOUCHBIT>
<MOVE ,BALLOON ,PROTAGONIST>
<TELL
"You grab the helium-filled balloon at the frill where it is tied. The
balloon gives a constant upward tug at your fingertips." CR>)
(<VERB? EXAMINE>
<TELL "It's a bright red balloon which is ">
<COND (<FSET? ,BALLOON ,OPENBIT>
<TELL "untied">)
(T
<TELL "tied closed">)>
<TELL " and filled with helium." CR>)
(<OR <VERB? DROP THROW PUT>
<EQUAL? ,P-PRSA-WORD ,W?FREE>>
<BALLOON-FLIGHT>
<CRLF>)
(<VERB? UNTIE OPEN>
<COND (<NOT <HELD? ,BALLOON>>
<TELL ,NOT-HOLDING " the " D ,BALLOON "." CR>)
(<NOT <FSET? ,BALLOON ,OPENBIT>>
<FSET ,BALLOON ,OPENBIT>
<TELL
"You untie the end of the " D ,BALLOON ", holding it closed." CR>)
(<AND <VERB? OPEN>
<FSET? ,BALLOON ,OPENBIT>>
<FSET ,BALLOON ,OPENBIT>
<BALLOON-FLIGHT>
<CRLF>)
(T
<TELL "It isn't tied." CR>)>)
(<AND <VERB? TIE CLOSE>
<NOT ,PRSI>>
<COND (<FSET? ,BALLOON ,OPENBIT>
<FCLEAR ,BALLOON ,OPENBIT>
<TELL
"Okay, the " D ,BALLOON " is once again tied closed." CR>)
(T
<TELL "It is." CR>)>)
(<VERB? INHALE>
<TELL
"It would be safer to inhale what's IN the balloon." CR>)
;(<VERB? LOOK-INSIDE>
<V-COUNT>)
(<HURT? ,BALLOON>
<TELL "You manage to puncture it. ">
<MOVE ,BALLOON ,LOCAL-GLOBALS>
<BALLOON-FLIGHT>
<CRLF>)>>
<ROUTINE BALLOON-FLIGHT ()
<FSET ,BALLOON ,TOUCHBIT>
<MOVE ,BALLOON ,LOCAL-GLOBALS>
<COND (<AND <NOT <FSET? ,BALLOON ,OPENBIT>>
<NOT <HURT? ,BALLOON>>>
<TELL
"The " D ,BALLOON " flies up and ">
<COND (<NOT <FSET? ,HERE ,INDOORSBIT>>
<TELL
"disappears into the night sky.">
<RTRUE>)
(T
<TELL
"gets punctured on the " D ,CEILING ". ">)>)>
<TELL
"With helium spitting out of it, the fink zips wildly through the air
and disappears. ">>
<OBJECT HELIUM
(IN BALLOON)
(DESC "helium")
(SYNONYM HELIUM)
(FLAGS NDESCBIT NARTICLEBIT AIRBIT CLEARBIT)
(SIZE 2)
(ACTION HELIUM-F)>
<ROUTINE HELIUM-F ()
<COND (<VERB? INHALE>
<COND ;(<NOT ,THUMB-THRU>
<TELL ,TIPPED-OFF>
<RTRUE>)
(<FSET? ,BALLOON ,OPENBIT>
<MOVE ,BALLOON ,LOCAL-GLOBALS>
<MOVE ,HELIUM ,LOCAL-GLOBALS>
<ENABLE <QUEUE I-HELIUM 2>>
<TELL
"The " D ,BALLOON " shrinks rapidly before your eyes as your chest
expands and tightens ... then it slips from your grasp! ">
<BALLOON-FLIGHT>
<TELL
"You manage to momentarily hold the helium in your lungs." CR>
<PUTP ,PROTAGONIST ,P?ACTION ,PROTAGONIST-HACK-F>)
(T
<TELL "But the " D ,BALLOON " is tied closed." CR>)>)
(<VERB? DROP>
<V-COUNT>)>>
<ROUTINE I-HELIUM ()
<DISABLE <INT I-HELIUM>>
<COND (<NOT ,SPEAK-HELIUM>
<TELL CR "You exhale your lungsful of helium." CR>)>
<RFALSE>>
<OBJECT NET
(IN RING)
(DESC "safety net")
(SYNONYM NET)
(ADJECTIVE SAFETY)
(FLAGS NDESCBIT CONTBIT OPENBIT SURFACEBIT SEARCHBIT VEHBIT)
(GENERIC GEN-NET)
(ACTION NET-F)>
<ROUTINE NET-F ("OPTIONAL" (RARG <>))
<COND (<EQUAL? .RARG ,M-BEG>
<COND (<AND <VERB? WALK>
<EQUAL? ,P-WALK-DIR ,P?DOWN ,P?OUT>> ;"generalize?"
<PERFORM ,V?DISEMBARK ,NET>
<RTRUE>)
(<VERB? WALK>
<OUT-OF-FIRST ,NET>)
(<VERB? LEAP>
<TELL
"After bouncing about the net a while you appreciate that much more the
talent of the " D ,BROS " Brothers." CR>)>)
(.RARG
<RFALSE>)
(<AND <VERB? BOARD>
<IN? ,NET ,MUNRAB>>
<TELL ,BASKET-CASE CR>)
(<AND <VERB? TAKE>
<IN? ,NET ,MUNRAB>>
<TELL
D ,MUNRAB " looks flustered then yanks the coarsely woven net out of "
D ,HANDS ". \"I'm in charge here!\"" CR>)
(<AND <TOUCHING? ,NET>
<IN? ,NET ,GLOBAL-OBJECTS>> ;"moved to globals to"
<CANT-SEE ,NET>) ;"ask jim for"
(<VERB? OPEN CLOSE>
<CANT-OPEN>)
(<AND <VERB? DISEMBARK CLIMB-DOWN>
<EQUAL? <LOC ,PROTAGONIST> ,NET>>
<MOVE ,PROTAGONIST ,HERE>
<TELL
"You climb out of the " D ,NET " with a bounce in your step." CR>)>>
<OBJECT GLOBAL-NET
(IN GLOBAL-OBJECTS)
(DESC "safety net")
(SYNONYM NET)
(ADJECTIVE SAFETY)
(GENERIC GEN-NET)
(ACTION GLOBAL-NET-F)>
<ROUTINE GLOBAL-NET-F ()
<COND (<DONT-HANDLE? ,GLOBAL-NET>
<RFALSE>)
(<OR <IN? ,NET ,LOCAL-GLOBALS>
<IN? ,NET ,GLOBAL-OBJECTS>
<AND <OR <IN? ,NET ,MUNRAB>
<IN? ,NET ,RING>>
<NOT <EQUAL? ,HERE ,TIGHTROPE-ROOM ,PLATFORM-1
,PLATFORM-2>>>>
<CANT-SEE <> "the net">)
(<VERB? LOOK-INSIDE EXAMINE>
<PERFORM ,V?LOOK-DOWN>
<RTRUE>)
(<AND <VERB? PUT>
<PRSI? ,GLOBAL-NET>>
<PERFORM ,V?DROP ,PRSO>
<RTRUE>)
(<VERB? LEAP THROUGH BOARD>
<SETG HERE ,PLATFORM-1>
<PERFORM ,V?LEAP-OFF ,PLATFORM>
<RTRUE>)
(<TOUCHING? ,GLOBAL-NET>
<CANT-REACH ,NET>)>>
<ROUTINE GEN-NET ()
,GLOBAL-NET>
<ROOM WINGS
(IN ROOMS)
(DESC "In the Wings")
;(SYNONYM STATION WPDL)
;(ADJECTIVE RADIO)
(NORTH PER RING-ENTER)
(IN PER RING-ENTER)
(SOUTH TO CON-AREA)
(OUT TO CON-AREA)
(UP PER STANDS-ENTER)
(NE PER STANDS-ENTER)
(FLAGS ONBIT RLANDBIT INDOORSBIT)
(GLOBAL BIGTOP GRANDSTAND RING-OBJECT CENTER-POLE PATH)
(ACTION WINGS-F)>
<ROUTINE WINGS-F (RARG)
<COND (<AND <EQUAL? .RARG ,M-ENTER>
<EQUAL? ,POCKET-CHANGE 1281> ;"have paid BOTH times"
<FSET? ,LONG ,RMUNGBIT> ;"I.E. WON LINES"
,DREAMING>
<DISABLE <INT I-STANDS>>
<FCLEAR ,HAWKER ,NDESCBIT>
<MOVE ,HAWKER ,WINGS>
<MOVE ,JUNK-FOOD ,HAWKER>)
(<EQUAL? .RARG ,M-LOOK>
<TELL
"The " D ,BIGTOP " can be entered to the north and exited to the south. ">
<COND (<OR ,WON-STANDS
<AND <EQUAL? ,MEET-COUNTER 10>
<NOT ,DREAMING>>>
<CRLF> <CRLF>)>
<TELL
"To the northeast, the grandstand">
<COND (,WON-STANDS
<TELL ,TELL-STANDS>)
(<AND <EQUAL? ,MEET-COUNTER 10> ;"IE, HEARD MEETING"
<NOT ,DREAMING>>
<TELL
" has been retracted slightly, revealing a passage">)
(T
<TELL " begins its precipitous rise">)>
<TELL ,PERIOD>)
(<AND <EQUAL? .RARG ,M-BEG>
<VERB? WAIT>>
<TELL
"Very theatrical of you, waiting in the wings. Expect no awards, however. ">
<RFALSE>)
(<AND <EQUAL? .RARG ,M-END>
<OR <EQUAL? ,MEET-COUNTER 10>
<FSET? ,POLE ,TOUCHBIT>>
<NOT <FSET? ,PLATFORM-2 ,TOUCHBIT>>
<NOT ,DREAMING>
<IN? ,NET ,RING>
<NOT <FSET? ,WEST-CAMP ,TOUCHBIT>>> ;"so cant do later"
<ENABLE <QUEUE I-FOLLOW 2>>
<SETG FOLLOW-FLAG 14>
<SETG P-IT-OBJECT ,JIM>
<MOVE ,NET ,LOCAL-GLOBALS>
<FCLEAR ,RING ,TOUCHBIT>
<TELL CR
"A roustabout who is wearing a " D ,HEADPHONES " and carrying a large net
over his shoulder passes you and exits the " D ,BIGTOP "." CR>)
(<AND <EQUAL? .RARG ,M-END>
<MONKEY-ACTS?>>
<RFALSE>)>>
<ROUTINE RING-ENTER ()
<COND (,DREAMING
<TELL
"You are immediately driven out of the ring by a rousing chorus of boos." CR>
<RFALSE>)
;(<AND <HELD? ,MEAT>
<IN? ,ELSIE ,RING>>