-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathoutside.zil
4979 lines (4656 loc) · 144 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
BALLYHOO
(c) Copyright 1984 Infocom, Inc. All Rights Reserved."
<ROOM CON-AREA
(IN ROOMS)
(DESC "Connection")
(NORTH TO WINGS)
(SOUTH TO NEAR-WAGON)
(WEST TO BESIDE-BIGTOP)
(EAST PER TURNSTILE-EXIT)
(SW TO BACK-YARD)
(IN TO WINGS)
(FLAGS ONBIT RLANDBIT)
(GLOBAL BIGTOP BANNER TURNSTILE MIDWAY SLOT)
(ACTION CON-AREA-F)>
<ROUTINE CON-AREA-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"This area of matted-down crabgrass lies between the vaulted " D ,BIGTOP
" entrance to the north and the enticements of the midway to the east, where
a " D ,BANNER " hangs crookedly above a " D ,TURNSTILE ". There is a "
D ,FOUNTAIN " near the side wall of the tent. ">
<COND (<NOT ,DREAMING>
<TELL
"You can enter the night to the west and south.">)
(T
<TELL CR CR
"Stretching away from a small concession stand ">
<COND (<IN? ,SHORT ,HERE>
<TELL "are a " D ,SHORT " and">)
(T
<TELL "is">)>
<TELL " a " D ,LONG " of suckers.">)>
<CRLF>)
(<EQUAL? .RARG ,M-ENTER>
<COND (<AND <EQUAL? ,P-WALK-DIR ,P?SOUTH ,P?OUT>
<NOT ,DREAMING>>
<TELL
"You emerge into the warm night air of summer." CR CR>
<COND (<NOT <FSET? ,CON-AREA ,TOUCHBIT>>
<MOVE ,CROWD ,CON-AREA>
<ENABLE <QUEUE I-BOOST -1>>)>)>
<COND (<AND <QUEUE-THUMB?>
<NOT ,DREAMING>>
<ENABLE <QUEUE I-THUMB 1>>)>)
(<AND ,DREAMING
<EQUAL? .RARG ,M-BEG>
<VERB? WALK>
<NOT <EQUAL? ,P-WALK-DIR ,P?NORTH>>>
<COND (<HELD? ,MONKEY>
<MONKEY-DIRECTION>)
(T
<TELL "That's not the way you remember it." CR>)>
<RTRUE>)
(<EQUAL? .RARG ,M-BEG>
<FSET ,LONG ,VEHBIT>
<FSET ,SHORT ,VEHBIT>
<COND (<AND <NOT <FSET? ,LONG ,RMUNGBIT>> ;"won lines?"
<VERB? BOARD>
<PRSO? ,LONG>
<G? ,LINE-COUNTER 3>>
<ENTER-LINE T>)
(T
<RFALSE>)>)
(<AND <EQUAL? .RARG ,M-END>
<MONKEY-ACTS?>>
<RFALSE>)>>
<ROUTINE MONKEY-ACTS? ()
<COND (<AND <IN? ,MONKEY ,PROTAGONIST>
<PROB 60>>
<TELL CR
"The " D ,MONKEY " on " D ,BACK " " <PICK-ONE ,MONKEYS>>
<TELL ,PERIOD>)
(T
<RFALSE>)>>
<GLOBAL MONKEYS
<LTABLE 0
"nervously bounces its weight up and down"
"idly grooms areas of your scalp"
"vocalizes excitedly in your ear"
"breathes its jungle breath down your neck">>
<OBJECT BANNER
(IN LOCAL-GLOBALS)
(DESC "sagging banner")
(SYNONYM BANNER)
(ADJECTIVE SAGGING)
(FLAGS NDESCBIT)
(ACTION BANNER-F)>
<ROUTINE BANNER-F ()
<COND (<VERB? READ EXAMINE>
<CRLF>
<COND (<EQUAL? ,HERE ,CON-AREA>
<TELL "\"TO SIDESHOWS">)
(<EQUAL? ,HERE ,MIDWEST>
<TELL "\"TO MENAGERIE">)
(T
<TELL "\"THIS WAY TO THE EGRESS">)>
<TELL "\"" CR>)
(<TOUCHING? ,BANNER>
<CANT-REACH ,BANNER>)>>
<OBJECT LONG
(IN LOCAL-GLOBALS)
(DESC "long line")
(SYNONYM LINE PEOPLE SUCKER FRONT)
(ADJECTIVE LONG LONGER CONCES PEOPLE)
(FLAGS VEHBIT NDESCBIT)
(GENERIC GEN-LINE-F)
(ACTION LONG-F)>
;"RMUNGBIT = have won and got nuts, now no lines move at all"
<ROUTINE LONG-F ("OPTIONAL" (RARG <>))
<COND (<EQUAL? .RARG ,M-ENTER>
<COND (<NOT <FSET? ,LONG ,TOUCHBIT>>
<FSET ,LONG ,TOUCHBIT>
<ENABLE <QUEUE I-BAD-LUCK 5>>
<RFALSE>)>)
(<EQUAL? .RARG ,M-BEG>
<COND (<GET-OUT-OF-LINE? ,LONG>
<RTRUE>)
(<VERB? WALK>
<OUT-OF-FIRST ,LONG>)
(<AND <IN? ,SHORT ,CON-AREA>
<NOT <IN? ,TEAM ,CON-AREA>>
<VERB? WAIT>>
<TELL
"Time itself, let alone the " D ,LONG ", has " D ,GROUND " to an agonizing
halt." CR>
<SETG CLOCK-WAIT T>
<RTRUE>)>)
(.RARG
<RFALSE>)
(T
<LINES-F>)>>
<OBJECT SHORT
(IN LOCAL-GLOBALS)
(DESC "short line")
(SYNONYM LINE PEOPLE SUCKER FRONT)
(ADJECTIVE SHORTER SHORT CONCES PEOPLE)
(FLAGS ;VEHBIT NDESCBIT)
(GENERIC GEN-LINE-F)
(ACTION SHORT-F)>
;"RMUNGBIT = used in gen-line-f for GET OUT OF LINE"
<ROUTINE SHORT-F ("OPTIONAL" (RARG <>))
<COND (<EQUAL? .RARG ,M-BEG>
<COND (<GET-OUT-OF-LINE? ,SHORT>
<RTRUE>)
(<VERB? WALK>
<OUT-OF-FIRST ,SHORT>)>)
(.RARG
<RFALSE>)
(T
<LINES-F>)>>
<ROUTINE LINES-F ()
<COND (<AND <EQUAL? ,HERE ,CON-AREA>
<OR <AND <VERB? BOARD THROUGH WALK-TO>
,IN-FRONT-FLAG>
<EQUAL? ,P-PRSA-WORD ,W?CUT>
<AND <VERB? BOARD THROUGH WALK-TO>
<IS-NOUN? ,W?FRONT>>>>
<COND (<EQUAL? <LOC ,PROTAGONIST> ,LONG ,SHORT>
<OUT-OF-FIRST <LOC ,PROTAGONIST>>
<RTRUE>)
(T
<PERFORM ,V?WALK-TO ,CON-STAND>
<RTRUE>)>)
(T
<RFALSE>)>>
<ROUTINE GET-OUT-OF-LINE? (LINE)
<COND (<AND <VERB? DISEMBARK>
<EQUAL? ,P-PRSA-WORD ,W?GET>
<IS-NOUN? ,W?LINE>
<ZERO? <GET ,P-ADJW 0>>
<NOT <FSET? ,SHORT ,RMUNGBIT>>>
<FSET ,SHORT ,RMUNGBIT>
<TELL
"You begin ranting and raving and throwing a tantrum and all of those things
attendant upon someone getting way out of line. You feel better, but it
doesn't advance the " D .LINE "." CR>
<RTRUE>)
(T
<RFALSE>)>>
<ROUTINE GEN-LINE-F ("AUX" LINE)
<COND (<AND <VERB? DISEMBARK EXIT>
<EQUAL? <LOC ,PROTAGONIST> ,LONG ,SHORT>>
<LOC ,PROTAGONIST>)
(<EQUAL? ,P-NAM ,W?SUCKER> ;"only happens with two lines"
,ME) ;"since me is global object"
(<NOT <EQUAL? ,HERE ,CON-AREA>>
,LONG)
(<AND <VERB? DISEMBARK>
<NOT <EQUAL? <LOC ,PROTAGONIST> ,LONG ,SHORT>>>
,LONG)
(T
<RFALSE>)>>
;<OBJECT FRONT-OF-LINE
(IN GLOBAL-OBJECTS)
(DESC "line")
(SYNONYM FRONT LINE BEGIN)
(ADJECTIVE LONG LONGER SHORT SHORTER)
(FLAGS NDESCBIT)
(ACTION FRONT-OF-LINE-F)>
<GLOBAL LINE-COUNTER 0>
<ROUTINE I-BAD-LUCK ()
<COND (<EQUAL? <LOC ,PROTAGONIST> ,SHORT>
<FCLEAR ,LONG ,VEHBIT>)
(<EQUAL? <LOC ,PROTAGONIST> ,LONG>
<FCLEAR ,SHORT ,VEHBIT>)
;(<IN? ,PROTAGONIST ,HERE> ;"in con-area m-beg"
<FSET ,LONG ,VEHBIT>
<FSET ,SHORT ,VEHBIT>)>
<COND (<ZERO? ,LINE-COUNTER>
<MOVE ,SHORT ,CON-AREA>
<SETG LINE-COUNTER 1>
<ENABLE <QUEUE I-BAD-LUCK -1>>
<TELL CR
"Right next to the " D ,LONG " a much shorter line begins to form." CR>)
(<AND <EQUAL? ,LINE-COUNTER 1>
<IN? ,PROTAGONIST ,SHORT>>
<SETG LINE-COUNTER 2>)
(<AND <EQUAL? ,LINE-COUNTER 2>
<IN? ,PROTAGONIST ,SHORT>>
<SETG LINE-COUNTER 3>
<MOVE ,TEAM ,CON-AREA>
<MOVE ,JERRY ,CON-AREA>
<TELL CR
"The face of the man ahead of you lights up as he spots something.
\"Hey, guys! It's ME, Jerry,\" he yells to a sizable group nearby, and
they approach." CR>)
(<AND <EQUAL? ,LINE-COUNTER 3>
<EQUAL? <LOC ,PROTAGONIST> ,SHORT>>
<SETG LINE-COUNTER 4>
<FSET ,LONG ,VEHBIT>
<MOVE ,PROTAGONIST ,LONG>
<FCLEAR ,SHORT ,VEHBIT>
<PLAYER-NUM-CHECK>
<TELL CR
"\"Haven't seen you turkeys in years. Howda hell are you guys?\" They
all reintroduce themselves. \"Hey -- you clowns thirsty? Get in here, I'll
buy y'all beer.\"|
|
\"You sure it's not a problem?\" asks the " <GET ,PLAYERS ,PLAYER-NUM> ".|
|
\"Heck no, just scoot in right here.\"|
|
With both your resolve and your heaving bosom firm against the crush of
interlopers, you are nevertheless forced to backpedal." CR>
<RTRUE>)
(<AND <EQUAL? ,LINE-COUNTER 4>
<IN? ,PROTAGONIST ,LONG>>
<PLAYER-NUM-CHECK>
<TELL CR "Jerry continues " <PICK-ONE ,GREETINGS>
" the " <GET ,PLAYERS ,PLAYER-NUM> "." CR>
<COND (<AND <EQUAL? ,PLAYER-NUM 5>
<NOT <FSET? ,CON-STAND ,RMUNGBIT>>>
<FSET ,CON-STAND ,RMUNGBIT>
<TELL CR
"Out of the " D ,CORNER " of your eye, you see the line you first entered
suddenly kicking into gear and really begin moving." CR>)>
<RTRUE>)
(<AND <IN? ,PROTAGONIST ,HERE>
<EQUAL? ,LINE-COUNTER 4>> ;"entering short line aft Jerry"
<MOVE ,TEAM ,LOCAL-GLOBALS>
<MOVE ,JERRY ,LOCAL-GLOBALS>
<SETG LINE-COUNTER 5>
<RFALSE>)
(<AND <EQUAL? <LOC ,PROTAGONIST> ,LONG>
<EQUAL? ,LINE-COUNTER 5>>
<SETG LINE-COUNTER 6>
<TELL CR
"You notice the woman who had been next to you in the line you first
entered walk away from it with an overflowing tray of goodies." CR>)
(<AND <EQUAL? <LOC ,PROTAGONIST> ,LONG>
<EQUAL? ,LINE-COUNTER 6>>
<SETG LINE-COUNTER 7>
<TELL CR
"A baby's cry suddenly pierces the air like a siren." CR>)>>
<ROUTINE ENTER-LINE ("OPTIONAL" (WIN? <>))
<TELL
"A lot of other people must ">
<COND (.WIN?
<TELL "not ">)>
<TELL
"have had the same idea as you, as they " <PICK-ONE ,LINE-MERGE> " over to ">
<COND (.WIN?
<DISABLE <INT I-BAD-LUCK>>
<FSET ,LONG ,RMUNGBIT> ;"idicates you've WON the lines"
<MOVE ,PROTAGONIST ,HERE>
<MOVE ,BANANA ,PROTAGONIST>
<SETG POCKET-CHANGE <- ,POCKET-CHANGE 375>>
;<SETG POCKET-CHANGE 1281> ;"will = 1281 if bought bar too."
<TELL
"the " D ,SHORT ". Steaming to the front of the line, you get a "
D ,BANANA " pushed at you and are whisked to the side before you can
even count your change.">)
(T
<TELL
"your chosen line, bunching in ahead of you and making it the longer of the
two.">)>
<CRLF>>
<OBJECT GRANOLA
(IN LOCAL-GLOBALS)
(DESC "one-dollar-and-85-cent granola bar")
(SYNONYM GRANOLA BAR BARS FOOD)
(ADJECTIVE CANDY ONE-DOLLAR GRANOLA)
(FLAGS TAKEBIT EATBIT VOWELBIT)
(GENERIC GEN-BAR)
(ACTION GRANOLA-F)>
<GLOBAL ORDERED-GRANOLA <>>
<ROUTINE GRANOLA-F ()
<COND (<VERB? OPEN CLOSE>
<TELL "There's no wrapper." CR>)
(<VERB? BUY>
<COND (<AND <EQUAL? ,HERE ,STANDS-ROOM>
<IN? ,HAWKER ,HERE>
<EQUAL? ,POCKET-CHANGE 1841>>
<SETG ORDERED-GRANOLA T>)>
<PERFORM ,V?BUY ,JUNK-FOOD>
<RTRUE>)
(<VERB? EAT>
<TELL
"You abstain, since health foods tend to make you sick." CR>)>>
<ROUTINE GEN-BAR ()
,GRANOLA>
<OBJECT BANANA
(IN LOCAL-GLOBALS)
(DESC "two-dollar-and-25-cent frozen banana")
(SYNONYM BANANA FRUIT CHOCOLATE FOOD)
(ADJECTIVE TWO-DOLLAR FROZEN)
(FLAGS TAKEBIT EATBIT)
(GENERIC GEN-FOOD)
(ACTION BANANA-F)>
;"RMUNGBIT = banana is broken, monkey is interested"
<ROUTINE BANANA-F ()
<COND (<VERB? EXAMINE>
<TELL "The " D ,BANANA " is ">
<COND (<NOT <FSET? ,BANANA ,RMUNGBIT>>
<TELL "entirely ">)>
<TELL "coated with chocolate." CR>)
(<AND <VERB? BUY>
<EQUAL? ,HERE ,CON-AREA>
,DREAMING>
<PERFORM ,V?BUY ,JUNK-FOOD>
<RTRUE>)
(<OR <VERB? MUNG REMOVE TASTE>
<AND <VERB? TAKE>
,PRSI>>
<FSET ,BANANA ,RMUNGBIT>
<TELL
"As the " D ,MONKEY " on " D ,BACK " catches a whiff of the tangy fruit
beneath the chocolate, you feel its primal heart begin to race and, on
the back of your neck, its warm breath quicken." CR>
<COND (<NOT <HELD? ,BANANA>>
<CRLF>
<MOVE ,BANANA ,PROTAGONIST>
<PERFORM ,V?DROP ,BANANA>)>
<RTRUE>)
(<VERB? EAT BITE>
<COND (<FSET? ,BANANA ,RMUNGBIT>
<MOVE ,BANANA ,LOCAL-GLOBALS>
<TELL
"It gives you a brief, but intense, headache." CR>)
(T
<PERFORM ,V?MUNG ,BANANA>
<RTRUE>)>)
(<AND <VERB? DROP THROW>
<FSET? ,BANANA ,RMUNGBIT>>
<MOVE ,MONKEY ,LOCAL-GLOBALS>
<MOVE ,BANANA ,LOCAL-GLOBALS>
<TELL
"Following its jungle appetite, the " D ,MONKEY " dismounts " D ,BACK ",
pounces on the banana, and saunters away with it." CR>)>>
<ROUTINE GEN-FOOD ()
,JUNK-FOOD>
<OBJECT JERRY
(IN LOCAL-GLOBALS)
(DESC "Jerry")
(SYNONYM MAN JERRY PITCHER)
(FLAGS NDESCBIT ACTORBIT PERSON NARTICLEBIT)
(ACTION JERRY-F)>
<ROUTINE JERRY-F ()
<COND ;(<LOST-TRACK?>
<RTRUE>)
(<EQUAL? ,JERRY ,WINNER>
<SETG WINNER ,PROTAGONIST>
<PERFORM ,V?HELLO ,JERRY>
<SETG WINNER ,JERRY>
<RTRUE>)
(<TALKING-TO? ,JERRY>
<TELL
"The team is far too deeply engaged in nostalgia to pay any notice." CR>
<STOP>)
(<VERB? BOARD THROUGH>
;,IN-FRONT-FLAG
<PERFORM ,V?KILL ,JERRY>
<RTRUE>)
(<HURT? ,JERRY>
<FIGHT>
<FSET ,JERRY ,RMUNGBIT>)>>
<OBJECT TEAM
(DESC "group of ballplayers")
(SYNONYM GROUP BALLPLAYERS BASEMAN FIELDER)
(ADJECTIVE FIRST SECOND THIRD LEFT CENTER RIGHT CATCHER SHORTSTOP)
(FLAGS NDESCBIT ACTORBIT PERSON)
(ACTION TEAM-F)>
<ROUTINE TEAM-F ()
<COND ;(<LOST-TRACK?>
<RTRUE>)
(<HURT? ,TEAM>
<FIGHT>
<FSET ,TEAM ,RMUNGBIT>)
(<TALKING-TO? ,TEAM>
<SETG WINNER ,PROTAGONIST>
<PERFORM ,V?HELLO ,JERRY>
<SETG WINNER ,TEAM>
<RTRUE>)
(<VERB? BOARD THROUGH>
;,IN-FRONT-FLAG
<PERFORM ,V?KILL ,TEAM>
<RTRUE>)
(<VERB? COUNT>
<TELL "Nine players, altogether." CR>)>>
;<ROUTINE LOST-TRACK? ()
<COND (<G? ,LINE-COUNTER 5>
<TELL "You've lost track of the team." CR>)>>
<ROUTINE FIGHT ()
<COND (<AND <FSET? ,JERRY ,RMUNGBIT>
<FSET? ,TEAM ,RMUNGBIT>>
<JIGS-UP 5
"With the ensuing rhubarb, you end up on the permanently disabled list.">)
(T
<PLAYER-NUM-CHECK>
<TELL
"The " <GET ,PLAYERS ,PLAYER-NUM> " steps in between. \"This ">
<MAN-OR-WOMAN "clown" "chick">
<TELL " giving you trouble">
<COND (<PRSO? ,JERRY>
<TELL ", Jerry">)>
;<PLAYER-NUM-CHECK>
<SETG PLAYER-NUM <RANDOM 8>>
<TELL
"?\" Then the " <GET ,PLAYERS ,PLAYER-NUM> " backs you off with a nasty
stare." CR>)>>
<ROUTINE PLAYER-NUM-CHECK ()
<COND (<OR <IS-NOUN? ,W?FIELDER>
<IS-ADJ? ,W?LEFT>
<IS-ADJ? ,W?CENTER>
<IS-ADJ? ,W?RIGHT>>
<SETG PLAYER-NUM <+ 3 <RANDOM 4>>>)
(<OR <IS-NOUN? ,W?BASEMAN>
<IS-ADJ? ,W?FIRST>
<IS-ADJ? ,W?SECOND>
<IS-ADJ? ,W?THIRD>>
<SETG PLAYER-NUM <RANDOM 5>>)
(<IS-NOUN? ,W?CATCHER>
<SETG PLAYER-NUM <RANDOM 3>>)
(<IS-NOUN? ,W?SHORTSTOP>
<SETG PLAYER-NUM <+ 4 <RANDOM 3>>>)
(T
<SETG PLAYER-NUM <RANDOM 8>>)>>
;<ROUTINE PLAYER-NUM-CHECK ()
<COND (<EQUAL? ,PLAYER-NUM 8>
<SETG PLAYER-NUM 1>)
(T
<SETG PLAYER-NUM <+ ,PLAYER-NUM 1>>)>>
<GLOBAL PLAYER-NUM 1>
;"the pitcher is Jerry"
<GLOBAL PLAYERS
<PLTABLE
"left fielder"
"right fielder"
"center fielder"
"shortstop"
"catcher"
"second baseman"
"first baseman"
"third baseman">>
<GLOBAL GREETINGS
<LTABLE 0
"glad-handing"
"reminiscing with"
"ribbing"
"backslapping"
"jiving with">>
<OBJECT CON-STAND
(IN LOCAL-GLOBALS)
(DESC "concession stand")
(SYNONYM STAND BLOOMER)
(ADJECTIVE CONCES)
(FLAGS NDESCBIT)
(ACTION CON-STAND-F)>
;"RMUNGBIT = in i-bad-luck other line has kicked into gear"
<ROUTINE CON-STAND-F ()
<COND (<VERB? EXAMINE>
<TELL
"It's just a ramshackle little stand, apparently staffed by ramshackle
little people from the looks of the service everyone is getting." CR>)
(<AND <VERB? WALK-TO THROUGH ENTER BOARD>
<EQUAL? ,HERE ,CON-AREA>
,DREAMING>
<COND (<EQUAL? <LOC ,PROTAGONIST> ,LONG ,SHORT>
<OUT-OF-FIRST <LOC ,PROTAGONIST>>)
(T
<TELL
"You pass through a gauntlet of angry side-glances, outright dirty looks
and verbal abuse. The concessionaire -- \"Okay who's next?\" -- serves
somebody else and you walk back against a stream of sadistic sneers." CR>)>)>>
<OBJECT CONCESSIONAIRE
(IN LOCAL-GLOBALS)
(DESC "concessionaire")
(SYNONYM CONCES)
;(ADJECTIVE CONCES)
(FLAGS NDESCBIT)
(ACTION CONCESSIONAIRE-F)>
<ROUTINE CONCESSIONAIRE-F ()
<COND (<OR <TALKING-TO? ,CONCESSIONAIRE>
<VERB? BUY>>
<TELL
"You're not close enough to the " D ,CONCESSIONAIRE "." CR>
<STOP>)
(<AND <VERB? WALK-TO>
<EQUAL? ,HERE ,CON-AREA>
,DREAMING>
<PERFORM ,V?WALK-TO ,CON-STAND>
<RTRUE>)>>
<OBJECT FOUNTAIN
(IN CON-AREA)
(DESC "drinking fountain")
(SYNONYM FOUNTAIN ;DRAIN SPOUT)
(ADJECTIVE DRINKING)
(FLAGS NDESCBIT)
(ACTION FOUNTAIN-F)>
<ROUTINE FOUNTAIN-F ()
<COND (<VERB? EXAMINE>
<TELL
"It's your standard " D ,FOUNTAIN ", with a button next to the spout." CR>)
(<VERB? DRINK-FROM>
<PERFORM ,V?PUSH ,BUTTON>
<RTRUE>)>>
<OBJECT BUTTON
(IN CON-AREA)
(DESC "button")
(SYNONYM BUTTON)
(FLAGS NDESCBIT)
(ACTION BUTTON-F)>
<ROUTINE BUTTON-F ()
<COND (<AND <EQUAL? <LOC ,PROTAGONIST> ,LONG ,SHORT>
<TOUCHING? ,BUTTON>>
<OUT-OF-FIRST <LOC ,PROTAGONIST>>)
(<VERB? PUSH>
<COND (<RUNNING? ,I-BOOST>
<COND (<EQUAL? ,BOOST-COUNTER 3>
<SETG HELPED-THUMB T>
<THUMB-DRINKS>
<BOOST-EXIT>)
(T
<TELL "Somebody else is ahead of you." CR>)>)
(<PROB 50>
<TELL
"A jet of water hits you square in the eye." CR>)
(T
<TELL
"The sip of water is refreshing on this hot night." CR>)>)>>
<OBJECT GLOBAL-WATER
(IN GLOBAL-OBJECTS)
(DESC "water")
(SYNONYM DRINK WATER)
(FLAGS NDESCBIT)
(ACTION GLOBAL-WATER-F)>
<ROUTINE GLOBAL-WATER-F ()
<COND (<EQUAL? ,HERE ,CON-AREA>
<COND (<VERB? TAKE DRINK TASTE>
<PERFORM ,V?PUSH ,BUTTON>
<RTRUE>)
(T
<RFALSE>)>)
(T
<CANT-SEE ,GLOBAL-WATER>)>>
<ROOM BACK-YARD
(IN ROOMS)
(DESC "Back Yard")
(NORTH TO BESIDE-BIGTOP)
(SOUTH PER TURNSTILE-EXIT)
(EAST TO NEAR-WAGON)
(WEST TO PROP-ROOM)
(NE TO CON-AREA)
(FLAGS ONBIT RLANDBIT)
(GLOBAL TURNSTILE TENT FENCE)
(ACTION BACK-YARD-F)>
<ROUTINE BACK-YARD-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"You're standing in front of the " D ,TURNSTILE " entrance to a fenced-in
area, which is south. To the west stands a droopy tent, and the field
continues north and east." CR>)
(<AND <EQUAL? .RARG ,M-ENTER>
<ZERO? ,CLOWN-EXIT-COUNTER>
<NOT <RUNNING? ,I-BOOST>>
<NOT <FSET? ,BURNED-CAGE ,RMUNGBIT>>>
<FSET ,BURNED-CAGE ,RMUNGBIT>
<MOVE ,JOEY ,BACK-YARD>
;<MOVE ,THUMB ,BACK-YARD> ;"in i-clown-exit"
<MOVE ,FLOWER ,THUMB>
<ENABLE <QUEUE I-CLOWN-EXIT -1>>)
(<EQUAL? .RARG ,M-BEG>
<COND (<AND <NOT <RUNNING? ,I-CLOWN-EXIT>>
<CANT-WALK?>>
<RTRUE>)
(<AND <RUNNING? ,I-CLOWN-EXIT>
<VERB? WALK>
<HELD? ,THUMB>>
<SETG CLOWN-EXIT-COUNTER 7>
<TELL
"The midget becomes restless in your arms, halting your stroll." CR>)>)
(<AND <EQUAL? .RARG ,M-END>
<AND ,CLOWN-ALLEY-SCENE>
<NOT <FSET? ,BURNED-CAGE ,TOUCHBIT>>>
<FSET ,BURNED-CAGE ,TOUCHBIT>
<TELL CR ,GUARD-CALLS
"\"You're still around kicking sawdust, huh? Let me give a tip: Be careful,
there's no telling what, or who, could be lurking around the lot here at
night.\"" CR>)
(<AND <EQUAL? .RARG ,M-END>
<IN? ,GIRL ,PROTAGONIST>
<NOT ,GUARD-KNEW>>
<SETG GUARD-KNEW T>
<TELL CR
,GUARD-CALLS "\"Nice going, towner. It just shows you what can be accomplished
when you start out the evening with a little " D ,HELIUM ", eh?" CR>)>>
<GLOBAL GUARD-KNEW <>>
<GLOBAL CLOWN-EXIT-COUNTER 0> ;"REMEMBER, adds one at begin. of INT"
<GLOBAL THUMB-THRU <>>
<ROUTINE I-CLOWN-EXIT ("AUX" (NOT-HOLDING <>))
<COND (<NOT <HELD? ,THUMB>>
<SET NOT-HOLDING T>)>
<SETG CLOWN-EXIT-COUNTER <+ 1 ,CLOWN-EXIT-COUNTER>>
<COND (<NOT <EQUAL? ,HERE ,BACK-YARD>>
<SETG CLOWN-EXIT-COUNTER 8>)>
<COND (<EQUAL? ,CLOWN-EXIT-COUNTER 1>
<MOVE ,THUMB ,BACK-YARD>
<RTRUE>)
(<EQUAL? ,CLOWN-EXIT-COUNTER 2>
<MOVE ,JOEY ,CLOWN-ALLEY>
<SETG FOLLOW-FLAG 2>
<ENABLE <QUEUE I-FOLLOW 2>>
<COND (<NOT ,HELPED-THUMB>
<SETG CLOWN-EXIT-COUNTER 7>)>
;<MOVE ,GUARD ,BACK-YARD>
<TELL CR
"The tall clown, whom you now recognize as Chuckles, barks a hello into the
cage. You hear an electronic buzz from the " D ,TURNSTILE " and Chuckles passes
through.">)
(<AND <EQUAL? ,CLOWN-EXIT-COUNTER 3>
.NOT-HOLDING>
<TELL CR
D ,THUMB " performs an impromptu handstand.">)
(<AND <EQUAL? ,CLOWN-EXIT-COUNTER 4>
.NOT-HOLDING>
<TELL CR
D ,THUMB " belts out a few verses of a Russian folk song in his high-pitched,
squeaky voice while standing on his head.">)
(<AND <EQUAL? ,CLOWN-EXIT-COUNTER 5>
.NOT-HOLDING>
<TELL CR
"The midget performer does several cartwheels in a figure-eight pattern around
the grass field.">)
(<AND <EQUAL? ,CLOWN-EXIT-COUNTER 6>
.NOT-HOLDING>
<TELL CR
"In front of you, " D ,THUMB " terminates his acrobatics on one knee with
a grand gesture of his small arms.">)
(<AND <EQUAL? ,CLOWN-EXIT-COUNTER 7>
.NOT-HOLDING>
<TELL CR
D ,THUMB " is pausing to rest.">)
(<EQUAL? ,CLOWN-EXIT-COUNTER 8>
<DISABLE <INT I-CLOWN-EXIT>>
<COND (<EQUAL? ,HERE ,BACK-YARD>
<COND (<HELD? ,THUMB>
<TELL CR
"Wriggling out of your hold, ">)
(T
<CRLF>)>
<TELL
D ,THUMB ", in his squeaky and high-pitched voice, says \"Hello Harry\" toward
the " D ,BURNED-CAGE ". You hear a buzzing sound from the " D ,TURNSTILE " as
the midget reaches up to its lowest rung and passes through ..." CR>)>
<SETG THUMB-THRU T>
<DISABLE <INT I-TURNSTILE>>
<FCLEAR ,THUMB ,NDESCBIT>
<FCLEAR ,JOEY ,NDESCBIT>
<SETG FOLLOW-FLAG 2>
<ENABLE <QUEUE I-FOLLOW 2>>
<MOVE ,FLOWER ,LOCAL-GLOBALS>
<MOVE ,THUMB ,CLOWN-ALLEY>
<MOVE ,JOEY ,CLOWN-ALLEY>
<RTRUE>)
(T
<RFALSE>)>
<CRLF>>
<OBJECT CHUTE
(IN BESIDE-BIGTOP)
(DESC "barred passage")
(SYNONYM PASSAGE CHUTE BAR BARS)
(ADJECTIVE BARRED ;WILD ;ANIMAL)
(DESCFCN CHUTE-DESC)
(FLAGS CONTBIT OPENBIT TRANSBIT ;NDESCBIT)
(CAPACITY 500)
(CONTFCN IN-CHUTE)
(GENERIC GEN-BAR)
(ACTION CHUTE-F)>
<ROUTINE CHUTE-DESC ("OPTIONAL" X)
<TELL
"About waist-high, a barred passage for wild animals extends several yards
out from the " D ,BIGTOP>
<COND (<IN? ,NIMROD ,CHUTE>
<COND (<NOT <IN? ,MEAT ,CHUTE>>
<TELL
". The " D ,CHUTE " is being patrolled by two large ">
<COND (<NOT <FSET? ,GRATE ,OPENBIT>>
<TELL "and bewildered ">)>
<TELL "cats">)
(<IN? ,MEAT ,CHUTE>
<TELL
". Inside the chute, Nimrod and Elsie are loudly digging their chops into
the " D ,MEAT>)>)>
<TELL ".">>
<ROUTINE CHUTE-F ("OPTIONAL" (RARG <>))
<COND (<VERB? EXAMINE LOOK-INSIDE>
<COND (<AND <OR <IS-NOUN? ,W?BAR>
<IS-NOUN? ,W?BARS>>
<VERB? EXAMINE>>
<RFALSE>)
(<IN? ,ELSIE ,CHUTE>
<TELL "Two lions are ">
<COND (<IN? ,MEAT ,CHUTE>
<TELL "chomping on some meat inside">)
(T
<TELL "strolling the length of">)>
<TELL " the " D ,CHUTE>
<MOVE-LIONS ,DUMMY-OBJECT>
<COND (<IN? ,MEAT ,CHUTE>
<MOVE ,MEAT ,DUMMY-OBJECT>)>
<COND (<FIRST? ,CHUTE>
<TELL ", which also contains">
<PRINT-CONTENTS ,CHUTE>)>
<MOVE-LIONS ,CHUTE>
<COND (<IN? ,MEAT ,DUMMY-OBJECT>
<MOVE ,MEAT ,CHUTE>)>
<TELL ,PERIOD>)>)
(<VERB? BOARD THROUGH ENTER>
<TELL-CLOSELY-SPACED T>)
(<VERB? FOLLOW>
<TELL "It leads right into the " D ,BIGTOP "." CR>)
(<VERB? OPEN CLOSE>
<TELL "The rusty grate is inside the " D ,BIGTOP "." CR>)
(<VERB? WALK-AROUND>
<PERFORM ,V?LOOK-BEHIND ,CHUTE>
<RTRUE>)
(<AND <VERB? PUT>
<PRSI? ,CHUTE>>
<COND (<PRSO? ,MOUSE ,BALLOON>
<RFALSE>)
(<AND <G? <GETP ,PRSO ,P?SIZE> 20>
<NOT <EQUAL? ,PRSO ,POLE>>>
<TELL-CLOSELY-SPACED>)
(T
<COND (<AND <PRSO? ,MEAT>
<FSET? ,GRATE ,OPENBIT>>
<ENABLE <QUEUE I-LION 2>>)>
<MOVE ,PRSO ,CHUTE>
<TELL "You slip">
<ARTICLE ,PRSO T>
<TELL " into the " D ,CHUTE "." CR>)>)
(<AND <VERB? REACH-IN>
<IN? ,NIMROD ,CHUTE>>
<TELL "You'd">
<TELL-WITHDRAW-STUMP>)>>
<ROUTINE IN-CHUTE ()
<COND (<AND <VERB? TAKE MOVE RUB>
<EQUAL? ,HERE ,BESIDE-BIGTOP>>
<COND (<IN? ,ELSIE ,CHUTE>
<TELL
"If you reached into the " D ,CHUTE " you'd">
<TELL-WITHDRAW-STUMP T>)
(<AND <VERB? TAKE>
<PRSO? ,MEAT>
<FSET? ,GRATE ,OPENBIT>>
<CANT-REACH ,MEAT>)
;(<AND <VERB? TAKE>
<G? <GETP ,PRSO ,P?SIZE> 20>
<NOT <EQUAL? ,PRSO ,POLE>>>
<TELL-CLOSELY-SPACED>)
(T
<RFALSE>)>)
(T
<RFALSE>)>>
<ROUTINE TELL-WITHDRAW-STUMP ("OPTIONAL" (PRSO? <>))
<TELL
" likely withdraw a stump instead of " D ,HANDS>
<COND (.PRSO?
<TELL " or">
<ARTICLE ,PRSO T>)>
<TELL ,PERIOD>>
<OBJECT GRATE
(IN DEN)
(DESC "rusty grate")
(SYNONYM GRATE CHUTE PASSAGE)
(ADJECTIVE SQUARE RUSTY)
(FLAGS NDESCBIT DOORBIT)
(ACTION GRATE-F)>
;"RMUNGBIT = have opened it once while lions feed in den - lions pivot around
their dinner"
<ROUTINE GRATE-F ()
<COND (<AND <VERB? PUT>
<PRSI? ,GRATE>>
<COND (<PRSO? ,BALLOON>
<RFALSE>)
(<FSET? ,GRATE ,OPENBIT>
<MOVE ,PRSO ,CHUTE>
<TELL "You fling">
<ARTICLE ,PRSO T>
<TELL " into the darkness of the passage. ">
<COND (<PRSO? ,MOUSE>
<MOVE ,MOUSE ,LOCAL-GLOBALS>)
(<AND <IN? ,NIMROD ,DEN>
<PRSO? ,MEAT>>
<TELL ,LIONS-WAIT>)>
<CRLF>
<RTRUE>)
(T
<TELL "The " D ,GRATE " is closed." CR>)>)
(<OR <AND <NOT <FSET? ,GRATE ,OPENBIT>>
<VERB? OPEN RAISE PUSH>>
<AND <FSET? ,GRATE ,OPENBIT>
<VERB? CLOSE LOWER PUSH>>>
<COND (<IN? ,ELSIE ,CHUTE>
<COND (<VERB? OPEN RAISE>
<JIGS-UP 2
"With the force and brightness of a supernova, Nimrod's mane suddenly
bursts from the dark passage.">)
(T
<OPEN-GRATE>)>)
(<IN? ,MEAT ,HERE>
<COND (<FSET? ,GRATE ,RMUNGBIT>
<OPEN-GRATE>)
(T
<FSET ,GRATE ,RMUNGBIT>
<OPEN-GRATE T>)>)
(<EQUAL? ,ELSIE-COUNTER 0>
<TELL
"Like sentries on guard, the pacing lions prevent this." CR>)
(<L? ,ELSIE-COUNTER 3>
<TELL
"The " D ,ELSIE " is blocking access to the " D ,GRATE "." CR>)
(<NOT <HELD? ,STOOL>>
<TELL
"You're unable to get close enough without the " D ,NIMROD " getting too close
to you." CR>)
(T
<TELL
"Using the stool as a barrier against the " D ,NIMROD ", you're able to reach
it. ">
<OPEN-GRATE>)>)
(<VERB? LOOK-INSIDE EXAMINE>
<TELL "The ">
<COND (<FSET? ,GRATE ,OPENBIT>
<TELL "open">)
(T
<TELL "closed">)>
<TELL
" " D ,GRATE " leads to a passage going away from the round cage. "
,YOU-SEE " that it is empty up to the point where it extends outside of the
big top." CR>)
(<AND <OR <TOUCHING? ,GRATE>
<VERB? WALK-TO BOARD THROUGH>>
<IN? ,ELSIE ,HERE>
<NOT <EQUAL? ,ELSIE-COUNTER 3>>
<NOT <IN? ,MEAT ,HERE>>
;<NOT <HELD? ,STOOL>>>
<TELL "You can't get over to the grate." CR>
<RTRUE>)
(<VERB? BOARD THROUGH ENTER>
<COND (<FSET? ,GRATE ,OPENBIT>
<TELL "That's dangerous and foolhardy." CR>)
(T
<TELL "The grate is closed." CR>)>
<RTRUE>)>>
<ROUTINE OPEN-GRATE ("OPTIONAL" (EATING-MEAT? <>))
<COND (.EATING-MEAT?
<TELL "The ">
<COND (<ZERO? ,ELSIE-COUNTER>
<TELL "lions rotate">)
(T
<TELL D ,NIMROD " rotates">)>
<TELL
" around the lump of meat, continuing to feed while watching you. ">)>
<TELL "The " D ,GRATE " slides ">
<COND (<VERB? OPEN RAISE>
<FSET ,GRATE ,OPENBIT>
<TELL "up, jamming into place. ">
<COND (<IN? ,MEAT ,CHUTE>
<TELL ,LIONS-WAIT>)>
<CRLF>)
(T
<FCLEAR ,GRATE ,OPENBIT>
<TELL "down to the " D ,GROUND "." CR>)>>
<ROOM BESIDE-BIGTOP
(IN ROOMS)
(DESC "Beside the Big Top")
(SOUTH TO BACK-YARD)
(NORTH "You bump into the side wall of the big top.")
(SE TO NEAR-WAGON)
(EAST TO CON-AREA)
(WEST "It's too dark and unfamiliar out there.")
(FLAGS ONBIT RLANDBIT)
(GLOBAL BIGTOP)
(ACTION BESIDE-BIGTOP-F)>
<ROUTINE BESIDE-BIGTOP-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"You're standing next to the " D ,BIGTOP ", which is gently flapping in the
warm breeze." CR>)>>
;"Wagon and office stuff"
<ROOM NEAR-WAGON
(IN ROOMS)
(DESC "Near White Wagon")
(NORTH TO CON-AREA)
(SOUTH PER EGRESS-EXIT)
(OUT PER EGRESS-EXIT)
(NW TO BESIDE-BIGTOP)
(EAST TO OFFICE IF OFFICE-DOOR IS OPEN)
(IN TO OFFICE IF OFFICE-DOOR IS OPEN)
(WEST TO BACK-YARD)