-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathglobals.zil
3156 lines (2870 loc) · 87.8 KB
/
globals.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
"GLOBALS for
A MIND FOREVER VOYAGING
(c) Copyright 1985 Infocom, Inc. All Rights Reserved."
<OBJECT GLOBAL-OBJECTS
(SYNONYM ZZMGCK)
(FLAGS FURNITUREBIT BUFFERBIT VOWELBIT ;INTEGRALBIT MUNGEDBIT SEARCHBIT
TOUCHBIT INVISIBLE WORNBIT TAKEBIT DRINKBIT NARTICLEBIT
KLUDGEBIT KEYBIT PLURALBIT BADAREABIT DOORBIT TRANSBIT OPENBIT
TRYTAKEBIT SURFACEBIT READBIT PARKBIT ACTORBIT CONTBITS VEHBIT
NDESCBIT WEARBIT EATBIT ONBIT OUTSIDEBIT STREETBIT LIGHTBIT)>
<OBJECT LOCAL-GLOBALS
(LOC GLOBAL-OBJECTS)
(SYNONYM ZZMGCK)
(DESCFCN 0)
(GLOBAL GLOBAL-OBJECTS)
(FDESC "F")
(SDESC "F")
(LDESC "F")
;(PSEUDO "FOOBAR" V-WALK)
(NORTH TO COMM-MODE)
(SOUTH TO COMM-MODE)
(EAST TO COMM-MODE)
(WEST TO COMM-MODE)
(NE TO COMM-MODE)
(SE TO COMM-MODE)
(NW TO COMM-MODE)
(SW TO COMM-MODE)
(SIZE 0)
(TEXT "")
(CAPACITY 0)>
<OBJECT ROOMS
(IN TO ROOMS)>
<OBJECT INTNUM
(LOC GLOBAL-OBJECTS)
(DESC "number")
(SYNONYM INTNUM)
(ADJECTIVE NUMBER)>
;<OBJECT PSEUDO-OBJECT
(DESC "pseudo")
(ACTION ME-F)>
<OBJECT IT
(LOC GLOBAL-OBJECTS)
(SYNONYM IT THEM HER HIM)
(DESC "it")
(FLAGS VOWELBIT NARTICLEBIT NDESCBIT TOUCHBIT)>
<OBJECT NOT-HERE-OBJECT
(DESC "it")
(FLAGS NARTICLEBIT)
(ACTION NOT-HERE-OBJECT-F)>
<ROUTINE NOT-HERE-OBJECT-F ("AUX" TBL (PRSO? T) OBJ (X <>))
<COND (<AND <PRSO? ,NOT-HERE-OBJECT>
<PRSI? ,NOT-HERE-OBJECT>>
<TELL "[Those things aren't here!]" CR>
<RTRUE>)
(<PRSO? ,NOT-HERE-OBJECT>
<SET TBL ,P-PRSO>)
(T
<SET TBL ,P-PRSI>
<SET PRSO? <>>)>
<COND (<OR <AND .PRSO?
<PRSO-VERB?>>
<AND <NOT .PRSO?>
<PRSI-VERB?>>
<AND <NOT .PRSO?> ;"as in CLERK, SELL ME A CROWBAR"
<NOT <EQUAL? ,WINNER ,PLAYER>>
<VERB? SGIVE>
<PRSO? ,ME>>>
<SET X T>
<COND (<SET OBJ <FIND-NOT-HERE .TBL .PRSO?>>
<COND (<NOT <EQUAL? .OBJ ,NOT-HERE-OBJECT>>
<RTRUE>)>)
(T
<RFALSE>)>)>
;"Here is the default 'cant see any' printer"
<COND (.X
<TELL "[You'll have to be more specific.]" CR>)
(<AND <VERB? TELL CALL>
<EQUAL? ,P-XNAM ,W?JILL>
<IN-APARTMENT?>
<NOT <IN? ,JILL ,LOCAL-GLOBALS>>>
<COND (<EQUAL? ,SYEAR 2041 2051>
<TELL
"\"I can't hear you, Perry!\" Jill shouts back. \"Come in here!\"" CR>)
(T
<TELL
"There's no reply; perhaps Jill didn't hear you from the other room." CR>)>)
(<EQUAL? ,WINNER ,PLAYER>
<TELL "[You can't ">
<COND (<EQUAL? ,P-XNAM ,W?CONVERSAT ,W?ALARM ,W?MUSIC>
<TELL "hear">)
(T
<TELL "see">)>
<COND (<AND <NOT <NAME? ,P-XNAM>>
<NOT <EQUAL? ,P-XADJ ,W?MY>>>
<TELL " any">)
(<EQUAL? ,P-XNAM ,W?WIZARD ,W?OZ>
<TELL " any">)>
<NOT-HERE-PRINT .PRSO?>
<TELL " here!]" CR>)
(T
<COND (<EQUAL? ,MODE ,INTERFACE-MODE>
<TELL "Emitting signals of confusion,">)
(T
<TELL "Looking confused,">)>
<ARTICLE ,WINNER T>
<COND (<EQUAL? ,MODE ,INTERFACE-MODE>
<TELL " reports, \"This unit is unaware of">)
(T
<TELL " says, \"I don't see">)>
<COND (<NOT <NAME? ,P-XNAM>>
<TELL " any">)>
<NOT-HERE-PRINT .PRSO?>
<TELL " here!\"" CR>)>
<CLEAR-BUF>
<RTRUE>>
<ROUTINE PRSO-VERB? ()
<OR <EQUAL? ,PRSA ,V?FIND ,V?FOLLOW ,V?BUY>
<EQUAL? ,PRSA ,V?WHAT ,V?WHERE ,V?WHO>
<EQUAL? ,PRSA ,V?BUY-WITH ,V?WALK-TO ,V?WAIT-FOR>
<EQUAL? ,PRSA ;,V?CALL ,V?PAY-FOR>>>
<ROUTINE PRSI-VERB? ()
<EQUAL? ,PRSA ,V?ASK-ABOUT ,V?ASK-FOR ,V?TELL-ABOUT>>
<ROUTINE FIND-NOT-HERE (TBL PRSO? "AUX" M-F OBJ)
;"Protocol: return T if case was handled and msg TELLed, NOT-HERE-OBJECT
if 'can't see' msg TELLed, <> if PRSO/PRSI ready to use"
;"Special-case code goes here. <MOBY-FIND .TBL> returns # of matches.
If 1, then P-MOBY-FOUND is it. You can treat the 0 and >1 cases alike
or differently. Always return RFALSE (not handled) if you have resolved
the problem."
<SET M-F <MOBY-FIND .TBL>>
;<COND (,DEBUG
<TELL "[Moby-Found " N .M-F " obj]" CR>)>
<COND (<EQUAL? 1 .M-F>
;<COND (,DEBUG
<TELL "[Namely: " D ,P-MOBY-FOUND "]" CR>)>
<COND (.PRSO?
<SETG PRSO ,P-MOBY-FOUND>
<SETG P-IT-OBJECT ,PRSO>)
(T
<SETG PRSI ,P-MOBY-FOUND>)>
<RFALSE>)
(<AND <L? 1 .M-F>
<SET OBJ <APPLY <GETP <SET OBJ <GET .TBL 1>> ,P?GENERIC>>>>
;"Protocol: returns .OBJ if that's the one to use
,NOT-HERE-OBJECT if case was handled and msg TELLed
<> if WHICH-PRINT should be called"
;<COND (,DEBUG
<TELL "[Generic: " D .OBJ "]" CR>)>
<COND (<EQUAL? .OBJ ,NOT-HERE-OBJECT>
<RTRUE>)
(.PRSO?
<SETG PRSO .OBJ>
<SETG P-IT-OBJECT ,PRSO>)
(T
<SETG PRSI .OBJ>)>
<RFALSE>)
(T
,NOT-HERE-OBJECT)>>
<ROUTINE NOT-HERE-PRINT (PRSO?)
<COND ;(<NAME? ,P-XNAM>
<TELL "one by that name">)
(<OR ,P-OFLAG ,P-MERGED>
<COND (,P-XADJ
<COND (<EQUAL? ,P-XADJ ,W?MY>
<TELL " your">)
(T
<TELL " ">
<PRINTB ,P-XADJ>)>)>
<COND (,P-XNAM
<TELL " ">
<PRINTB ,P-XNAM>)>)
(.PRSO?
<BUFFER-PRINT <GET ,P-ITBL ,P-NC1> <GET ,P-ITBL ,P-NC1L> <>>)
(T
<BUFFER-PRINT <GET ,P-ITBL ,P-NC2> <GET ,P-ITBL ,P-NC2L> <>>)>>
<OBJECT GROUND
(LOC GLOBAL-OBJECTS)
(SYNONYM FLOOR GROUND MUD)
(DESC "ground")
(ACTION GROUND-F)>
<ROUTINE GROUND-F ()
<COND (<VERB? CLIMB-UP CLIMB-ON CLIMB-FOO BOARD LIE-DOWN SIT>
<V-YELL>)
(<VERB? LOOK-UNDER>
<V-COUNT>)
(<VERB? LEAVE>
<DO-WALK ,P?UP>)>>
<OBJECT WALLS
(LOC GLOBAL-OBJECTS)
(FLAGS NDESCBIT TOUCHBIT)
(DESC "wall")
(SYNONYM WALL WALLS)
(ACTION WALLS-F)>
<ROUTINE WALLS-F ()
<COND (<AND <EQUAL? ,HERE ,ROCKVIL-REFORMATORY>
<VERB? EXAMINE>>
<TELL
"Huge monolithic walls, topped with guardposts and barbed wire,
separate this entrance area from the prison proper." CR>)>>
<OBJECT CEILING
(LOC GLOBAL-OBJECTS)
(FLAGS NDESCBIT TOUCHBIT)
(DESC "ceiling")
(SYNONYM CEILING ROOF)
(ACTION CEILING-F)>
<ROUTINE CEILING-F ()
<COND (<VERB? LOOK-UNDER>
<PERFORM ,V?LOOK>
<RTRUE>)>>
<OBJECT HALLWAY
(LOC LOCAL-GLOBALS)
(DESC "hallway")
(SYNONYM HALL HALLWAY CORRIDOR FOYER BREEZEWAY)
(ADJECTIVE DARK BRIGHT AIRY)
(ACTION HALLWAY-F)>
<ROUTINE HALLWAY-F ()
<COND (<VERB? WALK-TO THROUGH>
<COND (<EQUAL? ,HERE ,EPILOGUE-LIVING-ROOM>
<DO-WALK ,P?NORTH>)
(<EQUAL? ,HERE ,HOSPITAL-ANNEX ,EPILOGUE-BATHROOM>
<DO-WALK ,P?NE>)
(<EQUAL? ,HERE ,CINEMA>
<DO-WALK ,P?IN>)
(<EQUAL? ,HERE ,LIVING-ROOM>
<DO-WALK ,P?SOUTH>)
(<EQUAL? ,HERE ,HOSPITAL>
<DO-WALK ,P?SW>)
(<EQUAL? ,HERE ,DEN>
<DO-WALK ,P?WEST>)
(<EQUAL? ,HERE ,GUEST-ROOM>
<DO-WALK ,P?EAST>)
(<GLOBAL-IN? ,HALLWAY ,HERE>
<TELL ,LOOK-AROUND CR>)>)
(<VERB? LEAVE DISEMBARK>
<COND (<EQUAL? ,HERE ,PARKVIEW-HALL ,FOYER>
<V-WALK-AROUND>)
(T
<TELL ,LOOK-AROUND CR>)>)
(<VERB? EXAMINE LOOK-INSIDE>
<COND (<EQUAL? ,HERE ,PARKVIEW-HALL ,FOYER>
<V-LOOK>)
(<EQUAL? ,HERE ,CINEMA>
<TELL "The hall to the theatres is dark." CR>)>)>>
<OBJECT BUILDING
(LOC GLOBAL-OBJECTS)
(DESC "building")
(SYNONYM BUILDING APARTMENT BLDG BUILDINGS BLDGS STRUCTURE EDIFICE
EDIFICES)
(ADJECTIVE APARTMENT)
(ACTION BUILDING-F)>
<ROUTINE BUILDING-F ()
<COND (<VERB? THROUGH WALK-TO DISEMBARK LEAVE>
<V-WALK-AROUND>)
(<VERB? EXAMINE>
<COND (<OR <EQUAL? ,SYEAR 2081>
<EQUAL? ,HERE ,BURNED-OUT-AREA>>
<TELL "The buildings are all gutted." CR>)
(<AND <EQUAL? ,HERE ,CHURCH-ENTRANCE ,MIDLAND-AND-CHURCH
,CONSTRUCTION-SITE-5>
<EQUAL? ,SYEAR 2071>>
<TELL "Nothing is left of the building ">
<COND (<EQUAL? ,HERE ,CHURCH-ENTRANCE>
<TELL "to the northwest ">)
(<EQUAL? ,HERE ,MIDLAND-AND-CHURCH>
<TELL "to the southwest ">)>
<TELL "excepts ruins." CR>)>)>>
<OBJECT STAIRS
(LOC LOCAL-GLOBALS)
(DESC "stairs")
(SYNONYM STEP STEPS STAIR STAIRS STAIRWAY STAIRCASE STAIRWELL)
(ADJECTIVE SEALED-OFF COVERED)
(FLAGS NARTICLEBIT NDESCBIT)
(ACTION STAIRS-F)>
<ROUTINE STAIRS-F ()
<COND (<VERB? CLIMB-UP CLIMB-FOO>
<DO-WALK ,P?UP>)
(<VERB? CLIMB-DOWN>
<DO-WALK ,P?DOWN>)
(<AND <VERB? SMELL>
<EQUAL? ,HERE ,WICKER-AND-RIVER>
<NOT <EQUAL? ,SYEAR 2071>>>
<TELL
"There's an odor of urine from the Tube entrance." CR>)
(<AND <VERB? EXAMINE>
<EQUAL? ,SYEAR 2091>>
<TELL "The curving stairway leads ">
<COND (<EQUAL? ,HERE ,MASTER-BEDROOM>
<TELL "down to the living room." CR>)
(T
<TELL "up to the master bedroom." CR>)>)>>
<OBJECT UNOPENABLE-DOOR
(LOC LOCAL-GLOBALS)
(DESC "door")
(SYNONYM DOOR DOORS)
(ADJECTIVE SHATTERED GLASS)
(FLAGS DOORBIT)
(ACTION UNOPENABLE-DOOR-F)>
<ROUTINE UNOPENABLE-DOOR-F ()
<COND (<AND <VERB? OPEN UNLOCK>
<PRSI? ,KEY>>
<TELL "Your key doesn't fit the lock." CR>)
(<VERB? OPEN>
<TELL "The door is locked." CR>)
(<AND <VERB? EXAMINE>
<EQUAL? ,SYEAR 2071>
<EQUAL? ,HERE ,UNIVERSITY-HEIGHTS ,PARKVIEW-APARTMENTS
,CHURCH-STREET-APARTMENTS>>
<TELL "The cracked glass is held together by boards." CR>)>>
<OBJECT SLEEP
(LOC GLOBAL-OBJECTS)
(DESC "sleep")
(SYNONYM SLEEP NAP)
(FLAGS NARTICLEBIT)
(ACTION SLEEP-F)>
<ROUTINE SLEEP-F ()
<COND (<VERB? TAKE WALK-TO>
<V-SLEEP>)>>
;<OBJECT AIR
(LOC GLOBAL-OBJECTS)
(DESC "air")
(SYNONYM AIR)
(FLAGS VOWELBIT NARTICLEBIT)>
<OBJECT SMOKE
(LOC LOCAL-GLOBALS)
(DESC "smoke")
(SYNONYM SMOKE BILLOW BILLOWS PILLAR PILLARS)
(ADJECTIVE BLACK ASHY TOBACCO TREMENDOU THICK)
(FLAGS NARTICLEBIT)
(ACTION SMOKE-F)>
<ROUTINE SMOKE-F ()
<COND (<AND <VERB? WALK-TO>
<EQUAL? ,HERE ,MAIN-AND-WICKER>
<EQUAL? ,SYEAR 2081>>
<DO-WALK ,P?SOUTH>)
(<AND <EQUAL? ,SYEAR 2071>
<EQUAL? ,HERE ,MAIN-AND-WICKER ,POWER-STATION
,BURGER-MEISTER>
<NOT <MOBY-VERB?>>>
<CANT-SEE ,SMOKE>)
(<VERB? SMELL>
<COND (<EQUAL? ,HERE ,MAIN-AND-WICKER>
<TELL "You get a brief whiff of burning wood." CR>)
(<EQUAL? ,HERE ,POWER-STATION>
<TELL
"The smoke carries the pungent smell of high-sulfur coal." CR>)
(T
<TELL
"The tobacco smoke has a strong, bitter odor." CR>)>)
(<VERB? EXAMINE>
<COND (<EQUAL? ,HERE ,POWER-STATION>
<TELL
"The smoke billows upward in a thick, black pillar." CR>)
(<EQUAL? ,HERE ,MAIN-AND-WICKER>
<TELL
"The smoke rises from unseen fires south of here." CR>)>)>>
<OBJECT PLAY
(LOC LOCAL-GLOBALS)
(DESC "play")
(SYNONYM PLAY PRODUCTION MUSICAL)
(ACTION PLAY-F)>
<ROUTINE PLAY-F ()
<COND (<AND <VERB? EXAMINE THROUGH WALK-TO>
<EQUAL? ,HERE ,WELLS-THEATRE ,PICKFORD-THEATRE>>
<TELL ,NO-TICKET CR>)>>
<OBJECT SKY
(LOC GLOBAL-OBJECTS)
(DESC "sky")
(SYNONYM SKY)
(ADJECTIVE DARKENING SMOGGY GRAY)
(ACTION SKY-F)>
<ROUTINE SKY-F ()
<COND (<AND <NOT <FSET? ,HERE ,OUTSIDEBIT>>
<NOT <MOBY-VERB?>>>
<CANT-SEE ,SKY>)
(<AND <VERB? EXAMINE>
,SIMULATING>
<TELL "The sky is ">
<COND (<EQUAL? ,LIGHT-LEVEL 0>
<TELL "dark">)
(<EQUAL? ,LIGHT-LEVEL 1 2>
<TELL "getting ">
<COND (<L? ,STIME 720>
<TELL "lighter">)
(T
<TELL "darker">)>)
(<EQUAL? ,SYEAR 2061 2071>
<SCORE 118> ;"2 points"
<TELL "gray and smoggy">)
(T
<TELL "light">)>
<TELL "." CR>)>>
<OBJECT DAWN
(LOC GLOBAL-OBJECTS)
(DESC "dawn")
(SYNONYM DAWN SUNRISE SUNUP)
(ADJECTIVE MORNING)
(FLAGS NARTICLEBIT)>
<OBJECT DUSK
(LOC GLOBAL-OBJECTS)
(DESC "dusk")
(SYNONYM DUSK SUNSET SUNDOWN)
(ADJECTIVE EVENING)
(FLAGS NARTICLEBIT)>
<OBJECT NIGHT
(LOC GLOBAL-OBJECTS)
(DESC "night")
(SYNONYM NIGHT NIGHTTIME NIGHTIME DARK DARKNESS)
(ACTION NIGHT-F)>
<ROUTINE NIGHT-F ()
<COND (<VERB? WAIT-FOR>
<PERFORM ,V?WAIT-FOR ,DUSK>
<RTRUE>)
(<AND ,SIMULATING
<NOT <EQUAL? ,LIGHT-LEVEL 0>>
<NOT <MOBY-VERB?>>>
<CANT-SEE ,NIGHT>)
(<AND <NOT <EQUAL? ,HERE ,ROOFTOP>>
<NOT <MOBY-VERB?>>>
<CANT-SEE ,NIGHT>)>>
<OBJECT DAY
(LOC GLOBAL-OBJECTS)
(DESC "day")
(SYNONYM DAY DAYTIME DAYLIGHT LIGHTNESS LIGHT SUNSHINE)
(ACTION DAY-F)>
<ROUTINE DAY-F ()
<COND (<VERB? WAIT-FOR>
<PERFORM ,V?WAIT-FOR ,DAWN>
<RTRUE>)
(<AND ,SIMULATING
<EQUAL? ,LIGHT-LEVEL 0>
<NOT <MOBY-VERB?>>>
<CANT-SEE ,DAY>)>>
<OBJECT NOON
(LOC GLOBAL-OBJECTS)
(DESC "noon")
(SYNONYM NOON MIDDAY MID-DAY)
(FLAGS NARTICLEBIT)>
<OBJECT MIDNIGHT
(LOC GLOBAL-OBJECTS)
(DESC "midnight")
(SYNONYM MIDNIGHT)
(FLAGS NARTICLEBIT)>
<OBJECT FLOODLIGHT
(LOC LOCAL-GLOBALS)
(DESC "floodlight")
(SYNONYM SPOTLIGHT FLOODLIGHT)
(ADJECTIVE HARSH POWERFUL)>
<OBJECT HANDS
(LOC GLOBAL-OBJECTS)
(SYNONYM HANDS HAND)
(ADJECTIVE BARE MY YOUR)
(DESC "your hands")
(FLAGS NDESCBIT TOUCHBIT NARTICLEBIT PLURALBIT MYBIT)
(ACTION HANDS-F)>
<ROUTINE HANDS-F (ACTOR)
<COND (<NOT ,SIMULATING>
<TELL "You have no hands." CR>)
(<VERB? WAVE>
<SETG PRSO <>>
<PERFORM ,V?WAVE-AT>
<RTRUE>)
(<VERB? SHAKE>
<COND (<SET ACTOR <FIND-IN ,HERE ,ACTORBIT>>
<PERFORM ,V?THANK .ACTOR>
<RTRUE>)
(T
<TELL "Pleased to meet you." CR>)>)
(<VERB? WASH>
<COND (<GLOBAL-IN? ,SINK ,HERE>
<TELL "Your hands are now cleaner." CR>)
(T
<TELL "There's no sink here!" CR>)>)>>
;<OBJECT TEETH
(LOC GLOBAL-OBJECTS)
(DESC "your teeth")
(SYNONYM TEETH)
(ADJECTIVE YOUR MY)
(FLAGS NARTICLEBIT PLURALBIT MYBIT)>
<OBJECT HEAD
(LOC GLOBAL-OBJECTS)
(DESC "your head")
(SYNONYM HEAD FACE)
(ADJECTIVE YOUR MY)
(FLAGS NARTICLEBIT MYBIT)
(ACTION HEAD-F)>
<ROUTINE HEAD-F ()
<COND (<NOT ,SIMULATING>
<TELL "You don't have a head, in the human sense." CR>)>>
;<OBJECT EYES
(LOC GLOBAL-OBJECTS)
(DESC "your eyes")
(SYNONYM EYE EYES)
(ADJECTIVE YOUR MY)
(FLAGS NARTICLEBIT PLURALBIT MYBIT)
(ACTION EYES-F)>
;<ROUTINE EYES-F ()
<COND (<VERB? OPEN>
<TELL "They are." CR>)
(<VERB? CLOSE>
<TELL "That won't help." CR>)>>
;<OBJECT EARS
(LOC GLOBAL-OBJECTS)
(DESC "your ears")
(SYNONYM EAR EARS)
(ADJECTIVE YOUR MY)
(FLAGS NARTICLEBIT PLURALBIT MYBIT)>
<OBJECT PLAYER
(LOC COMM-ROOM)
(DESC "it")
(FLAGS NDESCBIT INVISIBLE)
(ACTION PLAYER-F)>
<ROUTINE PLAYER-F ()
<COND (,SIMULATING
<RFALSE>)
(<AND <VERB? GIVE>
<PRSO? ,RECORD-BUFFER>>
<RFALSE>)
(<VERB? BOARD CLIMB-DOWN CLIMB-FOO CLIMB-ON CLIMB-OVER CLIMB-UP
CROSS DISEMBARK ENTER FOLLOW HIDE LEAP LEAVE
LIE-DOWN SIT SKIP STAND STAND-ON WALK-AROUND>
<TELL "A difficult task for an immobile computer." CR>)
(<VERB? CLOSE CUT DIG DROP GIVE KILL KNOCK MOVE MUNG OPEN POINT
PUSH PUT PUT-BEHIND PUT-ON PUT-UNDER TOUCH SHAKE THROW
ROB TAKE TIE TURN UNTIE WAVE WAVE-AT SEARCH KICK DANCE>
<TELL "That would be a neat trick without appendages." CR>)
(<VERB? BITE KISS SMILE>
<TELL "Your speakers are not equipped with mouths." CR>)
(<VERB? EAT DRINK>
<TELL "You can't and don't need to." CR>)
(<VERB? SMELL>
<TELL "You're not equipped with olfactory senses." CR>)>>
<OBJECT YOURSELF ;"for things like PERELMAN, TELL ME ABOUT YOURSELF"
(LOC GLOBAL-OBJECTS)
(DESC "it")
(SYNONYM YOURSELF YOU)
(FLAGS NARTICLEBIT VOWELBIT)
(ACTION YOURSELF-F)>
<ROUTINE YOURSELF-F ()
<TELL "[It's not clear whom you're referring to.]" CR>>
<OBJECT ME
(LOC GLOBAL-OBJECTS)
(DESC "yourself")
(SYNONYM I ME MYSELF SELF PERRY SIMM PRISM)
(ADJECTIVE PERRY)
(FLAGS ACTORBIT TOUCHBIT NARTICLEBIT)
(ACTION ME-F)>
<ROUTINE ME-F ("AUX" OLIT)
<COND (<VERB? TELL>
<TELL
"Talking to yourself is a sign of impending mental collapse." CR>
<CLEAR-BUF>)
(<VERB? LISTEN>
<TELL "Yes?" CR>)
(<VERB? ALARM>
<COND (<EQUAL? ,MODE ,SLEEP-MODE>
<TELL
"You are (although you haven't left Sleep Mode yet)." CR>)
(T
<TELL ,YOU-ARE CR>)>)
(<AND <VERB? GIVE>
<PRSI? ,ME>>
<PERFORM ,V?TAKE ,PRSO>
<RTRUE>)
(<VERB? MOVE>
<V-WALK-AROUND>)
(<VERB? SEARCH>
<V-INVENTORY>
<RTRUE>)
(<VERB? KILL MUNG>
<TELL "Dumb." CR>
<RTRUE>)
;(<VERB? FIND WHERE>
<TELL "You're right here!" CR>)
(<VERB? FIND WHERE>
<TELL "You're ">
<COND (<FSET? ,HERE ,STREETBIT>
<TELL "at">)
(<EQUAL? ,HERE ,MAIN-STREET-BRIDGE ,RIVER-STREET-BRIDGE
,PIER>
<TELL "on">)
(T
<TELL "in">)>
<COND (<OR <EQUAL? ,HERE ,INTERFACE-ROOM ,SIMULATION-ROOM>
<EQUAL? ,HERE ,LIBRARY-ROOM ,SLEEP-ROOM ,COMM-ROOM>>
<ARTICLE ,MODE T>)
(T
<ARTICLE ,HERE T>)>
<TELL "." CR>)
(<VERB? WHO>
<COND (,SIMULATING
<TELL "Perry Simm." CR>)
(T
<TELL "PRISM." CR>)>)
(<VERB? FOLLOW>
<TELL "It's difficult not to follow yourself." CR>)
(<VERB? EXAMINE>
<COND (<NOT ,SIMULATING>
<TELL
"How can you look at yourself? You're spread out through many rooms in
several buildings, most of which don't have communication outlets!" CR>)
(<EQUAL? ,SYEAR 2081>
<TELL
"Through your torn clothes you can see malnutrition sores
on your thin, bony arms." CR>)
(<EQUAL? ,SYEAR 2071>
<TELL
"Your clothes are frayed, and your skin is beginning to show
the wrinkles of your sixty years." CR>)
(T
<TELL
"You look much as you always have: a normal, middle-aged male">
<COND (<EQUAL? ,SYEAR 2061>
<TELL
", perhaps a little older and a little grayer">)>
<TELL ". Your clothes are ">
<COND (<EQUAL? ,SYEAR 2061>
<TELL "a bit old and ratty." CR>)
(T
<TELL "simple but adequate." CR>)>)>)
(<VERB? WASH>
<TELL "You're not dirty." CR>)
(<VERB? CALL>
<V-COUNT>)>>
<OBJECT MY-NAME
(LOC GLOBAL-OBJECTS)
(DESC "your name")
(SYNONYM NAME)
(ADJECTIVE MY YOUR)
(FLAGS NARTICLEBIT MYBIT)
(ACTION MY-NAME-F)>
<ROUTINE MY-NAME-F ()
<COND (<VERB? WHAT>
<PERFORM ,V?WHO ,ME>
<RTRUE>)>>
<OBJECT CONVERSATION
(LOC LOCAL-GLOBALS)
(DESC "conversation")
(SYNONYM BUZZ CONVERSAT)
(FLAGS NDESCBIT)
(ACTION CONVERSATION-F)>
<ROUTINE CONVERSATION-F ()
<COND (<AND <EQUAL? ,HERE ,DORM>
<NOT ,DORM-RAID-FLAG>>
<TELL "[You can't hear any ">
<PRINTD ,CONVERSATION>
<TELL " here!]" CR>)
(<VERB? LISTEN>
<COND (<EQUAL? ,HERE ,CONTROL-CENTER>
<TELL
"Even at maximum sensitivity, your aural receptors can't quite
make out the words of the ">
<PRINTD ,CONVERSATION>
<TELL "." CR>)
(T
<TELL "You can't make out any words." CR>)>)>>
<OBJECT MUSIC
(LOC LOCAL-GLOBALS)
(DESC "music")
(SYNONYM MUSIC)
(ADJECTIVE LOUD RAUCOUS DISTORTED MUFFLED)
(FLAGS NARTICLEBIT)
(ACTION MUSIC-F)>
<ROUTINE MUSIC-F ()
<COND (<AND <EQUAL? ,SYEAR 2061>
<EQUAL? ,HERE ,DORM>>
<TELL "[You can't hear any music here!]" CR>)
(<VERB? LISTEN>
<COND (<EQUAL? ,HERE ,BAR>
<PERFORM ,V?LISTEN ,JUKEBOX>
<RTRUE>)
(T
<TELL "The music is loud but muffled." CR>)>)>>
<OBJECT CRIME
(LOC GLOBAL-OBJECTS)
(DESC "crime")
(SYNONYM CRIME MUGGING ROBBERY MURDER SHOOTING THEFT)>
<OBJECT CRIMINAL
(LOC LOCAL-GLOBALS)
(DESC "criminal")
(SYNONYM CRIMINAL THIEF MURDERER MUGGER)>
<OBJECT DOORWAY
(LOC GLOBAL-OBJECTS)
(DESC "entrance")
(SYNONYM DOOR DOORS ENTRANCE OPENING DOORWAY ARCH ARCHWAY
PORTAL PORTALS)
(ADJECTIVE WIDE STEEL IMPRESSIV TALL ARCHED)
(FLAGS VOWELBIT)
(ACTION DOORWAY-F)>
<ROUTINE DOORWAY-F ()
<COND (<VERB? THROUGH>
<V-WALK-AROUND>)
(<VERB? OPEN>
<TELL "It is." CR>)
(<VERB? CLOSE>
<TELL "That door doesn't close." CR>)
(<AND <VERB? SMELL>
<EQUAL? ,HERE ,WICKER-AND-RIVER>
<NOT <EQUAL? ,SYEAR 2071>>>
<PERFORM ,V?SMELL ,STAIRS>
<RTRUE>)
(<VERB? LOOK-INSIDE>
<TELL
"You can't tell what's on the other side from here." CR>)>>
<OBJECT GLOBAL-ROOM
(LOC GLOBAL-OBJECTS)
(DESC "room")
(SYNONYM ROOM CHAMBER PLACE HALL)
(ADJECTIVE AREA)
(ACTION GLOBAL-ROOM-F)>
<ROUTINE GLOBAL-ROOM-F ()
<COND (<VERB? LOOK EXAMINE LOOK-INSIDE>
<V-LOOK>
<RTRUE>)
(<VERB? THROUGH WALK-TO>
<V-WALK-AROUND>)
(<VERB? LEAVE DISEMBARK>
<DO-WALK ,P?OUT>)
(<VERB? WALK-AROUND>
<TELL
"Walking around the room reveals nothing new. To move elsewhere, just type
the desired direction." CR>)
(<VERB? WASH>
<COND (<IN-APARTMENT?>
<COND (,APARTMENT-RAID-FLAG
;<COND (<AND <EQUAL? ,SYEAR 2051>
<NOT <EQUAL? ,JILL-COUNTER 13>>>
<RTRUE>)>
<TELL "You begin cleaning up the mess." CR>)
(<AND <EQUAL? ,JILL-COUNTER 9>
<IN? ,JILL ,HERE>>
<TELL ,MY-WEEK CR>)>)
(<AND <EQUAL? ,HERE ,FOODVILLE-1 ,FOODVILLE-2>
<EQUAL? ,SYEAR 2071 2081>>
<TELL "A hopeless job." CR>)>)>>
<OBJECT ALLEY-OBJECT
(LOC GLOBAL-OBJECTS)
(DESC "alley")
(SYNONYM ALLEY)
(ADJECTIVE LONG NARROW DIM)
(FLAGS VOWELBIT)
(ACTION ALLEY-OBJECT-F)>
<ROUTINE ALLEY-OBJECT-F ()
<COND (<VERB? WALK-TO THROUGH>
<COND (<EQUAL? ,HERE ,ALLEY>
<TELL ,LOOK-AROUND CR>)
(<EQUAL? ,HERE ,FACTORY-ENTRANCE>
<DO-WALK ,P?EAST>)
(<EQUAL? ,HERE ,BAR>
<DO-WALK ,P?WEST>)
(T
<V-WALK-AROUND>)>)
(<VERB? LEAVE DISEMBARK>
<COND (<EQUAL? ,HERE ,ALLEY>
<V-WALK-AROUND>)
(T
<TELL ,LOOK-AROUND CR>)>)
(<AND <VERB? EXAMINE>
<EQUAL? ,HERE ,ALLEY>>
<V-LOOK>)>>
<OBJECT STREET
(LOC GLOBAL-OBJECTS)
(DESC "road")
(SYNONYM STREET ROAD AVENUE BOULEVARD BLVD DRIVE)
(ADJECTIVE WIDE)
(ACTION STREET-F)>
<ROUTINE STREET-F ()
<COND (<AND <NOT <FSET? ,HERE ,STREETBIT>>
<NOT <EQUAL? ,HERE ,ROOFTOP>>
<NOT <MOBY-VERB?>>>
<CANT-SEE ,STREET>)
(<VERB? CROSS>
<TELL
"That's not useful; anything you could do or see
there, you can do or see here." CR>)
(<VERB? FOLLOW>
<V-WALK-AROUND>)>>
<OBJECT PEOPLE
(LOC LOCAL-GLOBALS)
(DESC "people")
(SYNONYM PEOPLE MEN WOMEN CROWD CROWDS MOB MOBS DINERS SERFS
MARKETEER STUDENTS)
(ADJECTIVE FRENZIED BLOODTHIRSTY MEALTIME BLACK)
(FLAGS NARTICLEBIT PLURALBIT)
(ACTION PEOPLE-F)>
<ROUTINE PEOPLE-F ()
<COND (<IN? ,SABOTEURS ,HERE>
<CHANGE-OBJECT ,PEOPLE ,SABOTEURS>)
(<AND <EQUAL? ,HERE ,ATHLETIC-FIELD>
<EQUAL? ,SYEAR 2061 2071>>
<CHANGE-OBJECT ,PEOPLE ,CHILDREN>)
(<AND <EQUAL? ,LIGHT-LEVEL 0>
<FSET? ,HERE ,STREETBIT>
<NOT <MOBY-VERB?>>>
<CANT-SEE ,PEOPLE>)
(<AND ,SIMULATING
<EQUAL? ,SYEAR 2081>>
<CANT-SEE ,PEOPLE>)
(<AND <EQUAL? ,HERE ,CORE>
<NOT <IN? ,SABOTEURS ,HERE>>
<NOT <MOBY-VERB?>>>
<CANT-SEE ,PEOPLE>)
(<VERB? TELL>
<TELL
"You can't speak to crowds of people, just individuals." CR>
<CLEAR-BUF>)
(<AND <VERB? ASK-ABOUT TELL-ABOUT>
<PRSO? ,PEOPLE>>
<PERFORM ,V?TELL ,PEOPLE>
<RTRUE>)
(<VERB? FOLLOW>
<V-WALK-AROUND>)
(<AND <VERB? WAIT-FOR>
<EQUAL? ,HERE ,CORE ,ROOFTOP>
<EQUAL? ,PART-FLAG 3>>
<V-WAIT 120>)
(<AND <VERB? EXAMINE LISTEN>
<EQUAL? ,HERE ,ROCKVIL-STADIUM>
<EQUAL? ,SYEAR 2071>
<AND <L? ,STIME 1201>
<G? ,STIME 481>>>
<TELL "The mob is frenzied and bloodthirsty." CR>)
(<AND <VERB? EXAMINE>
<EQUAL? ,HERE ,BAR>>
<PEOPLE-IN-BAR-DESC>
<CRLF>)>>
<ROUTINE PEOPLE-IN-BAR-DESC ()
<TELL "The bar is filled with ">
<COND (<EQUAL? ,SYEAR 2071>
<TELL "tough-looking serfs and black marketeers">)
(T
<TELL "all sorts of sleazy lowlifes">)>
<TELL ".">>
<OBJECT RESIGNATION
(LOC LOCAL-GLOBALS)
(DESC "resignation")
(SYNONYM RESIGNATION LETTER)
(ADJECTIVE RESIGNATION YOUR)>
<OBJECT PARENTS
(LOC GLOBAL-OBJECTS)
(DESC "your parents")
(SYNONYM PARENTS PARENT MOTHER FATHER MOM DAD)
(ADJECTIVE MY)
(FLAGS NARTICLEBIT PLURALBIT MYBIT)
(ACTION PARENTS-F)>
<ROUTINE PARENTS-F ()
<COND (<AND <OR <INTBL? ,W?MOTHER ,P-NAMW 2>
<INTBL? ,W?MOM ,P-NAMW 2>>
<VISIBLE? ,JILL>>
<CHANGE-OBJECT ,PARENTS ,JILL>)
(<AND <OR <INTBL? ,W?FATHER ,P-NAMW 2>
<INTBL? ,W?DAD ,P-NAMW 2>>
<IN-APARTMENT?>
<EQUAL? ,SYEAR 2041 2051>>
<CHANGE-OBJECT ,PARENTS ,ME>)
(<NOT <MOBY-VERB?>>
<CANT-SEE ,PARENTS>)>>
<OBJECT CLAVE
(LOC LOCAL-GLOBALS)
(DESC "Clave")
(SYNONYM CLAVE CLAVIUS SIMM BROTHER)
(ADJECTIVE MY CLAVE CLAVIUS)
(FLAGS NARTICLEBIT ACTORBIT)>
<OBJECT RAV
(LOC LOCAL-GLOBALS)
(DESC "Rav and Frita")
(SYNONYM RAV FRITA)
(FLAGS ACTORBIT NARTICLEBIT)>
<OBJECT FYLA
(LOC LOCAL-GLOBALS)
(DESC "Fyla")
(SYNONYM FYLA)
(FLAGS ACTORBIT NARTICLEBIT)>
<OBJECT WARREN
(LOC LOCAL-GLOBALS)
(DESC "Emily Warren")
(SYNONYM EMILY WARREN)
(ADJECTIVE EMILY)
(FLAGS ACTORBIT NARTICLEBIT VOWELBIT)>
<OBJECT PRICE
(LOC LOCAL-GLOBALS)
(DESC "Alyson Price")
(SYNONYM ALYSON PRICE)
(ADJECTIVE ALYSON)
(FLAGS ACTORBIT NARTICLEBIT VOWELBIT)>
<OBJECT ESTHER
(LOC LOCAL-GLOBALS)
(DESC "Esther Perelman")
(SYNONYM ESTHER PERELMAN DAUGHTER)
(ADJECTIVE ESTHER YOUR ONLY)
(FLAGS ACTORBIT VOWELBIT NARTICLEBIT)
(GENERIC GENERIC-PERELMAN-F)>
<OBJECT FORTZMAN
(LOC LOCAL-GLOBALS)
(DESC "Eleanor Fortzman")
(SYNONYM ELEANOR FORTZMAN)
(ADJECTIVE ELEANOR)
(FLAGS NARTICLEBIT VOWELBIT ACTORBIT)>
<OBJECT RANDU
(LOC LOCAL-GLOBALS)
(DESC "Aseejh Randu")
(SYNONYM RANDU ASEEJH)
(ADJECTIVE ASEEJH)
(FLAGS NARTICLE VOWELBIT ACTORBIT)>
<OBJECT GOLD
(LOC LOCAL-GLOBALS)
(DESC "Vera Gold")
(SYNONYM VERA GOLD ADMINISTR)
(ADJECTIVE VERA CHIEF)
(FLAGS ACTORBIT NARTICLEBIT)>
<OBJECT MINDEX