-
Notifications
You must be signed in to change notification settings - Fork 18
/
globals.zil
1627 lines (1448 loc) · 48.1 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
STATIONFALL
(c) Copyright 1987 Infocom, Inc. All Rights Reserved."
<DIRECTIONS ;"Do not change the order of the first 8 without consulting MARC!"
NORTH NE EAST SE SOUTH SW WEST NW UP DOWN IN OUT>
<ADJ-SYNONYM LARGE LARGER HUGE HUGER BIG BIGGER GIANT GIGANTIC TREMENDOUS
MIGHTY MIGHTIER MASSIVE>
<ADJ-SYNONYM SMALL SMALLER TINY TINIER LITTLE>
<ADJ-SYNONYM MY MINE>
<GLOBAL LIT T>
<GLOBAL MOVES 0>
<GLOBAL INTERNAL-MOVES 0>
<GLOBAL DAY 1>
<GLOBAL SCORE 0>
<GLOBAL HERE <>>
<OBJECT GLOBAL-OBJECTS
(SYNONYM ZZMGCK) ;"No, this synonym doesn't need to exist... sigh"
(DESC "it")
(FLAGS INVISIBLE TOUCHBIT SURFACEBIT TRYTAKEBIT OPENBIT SEARCHBIT
TRANSBIT WEARBIT ONBIT LIGHTBIT RLANDBIT WORNBIT VEHBIT
CONTBIT VOWELBIT LOCKEDBIT NDESCBIT DOORBIT PLURALBIT INBIT
NARTICLEBIT ;FEMALEBIT ACTORBIT FLOYDBIT NWELDERBIT ACTIVEBIT)>
<OBJECT LOCAL-GLOBALS
(IN GLOBAL-OBJECTS)
(DESC "it")
(SYNONYM ZZMGCK) ;"Yes, this synonym needs to exist... sigh"
(FLAGS NARTICLEBIT)
;(DESCFCN 0)
;(GLOBAL GLOBAL-OBJECTS)
;(FDESC "F")
;(LDESC "F")
;(SIZE 0)
;(TEXT "")
;(CAPACITY 0)
;(GENERIC ME-F)
;(THINGS <PSEUDO (ZZMGCK ZZMGCK ME-F)>)>
<OBJECT ROOMS
(IN TO ROOMS)
(DESC "it")
(FLAGS NARTICLEBIT)>
<OBJECT INTDIR
(IN GLOBAL-OBJECTS)
(DESC "direction")
(SYNONYM DIRECT)
(ADJECTIVE NORTH SOUTH EAST WEST NW NE SW SE)
(ACTION INTDIR-F)>
<ROUTINE INTDIR-F ()
<COND (<VERB? SET>
<TELL
"Okay, you're now facing in that direction, but you don't see
anything you didn't see before." CR>)
;(<VERB? DRIVE>
<COND (<IN? ,PROTAGONIST ,FORKLIFT>
<PERFORM ,V?DRIVE-DIR ,FORKLIFT ,INTDIR>
<RTRUE>)
(T
<SETG AWAITING-REPLY 1>
<QUEUE I-REPLY <+ ,C-ELAPSED 2>>
<TELL "Are there wheels in your shoes?" CR>)>)>>
<OBJECT INTNUM
(IN GLOBAL-OBJECTS)
(DESC "number")
(SYNONYM NUMBER ONE TWO THREE)
(ADJECTIVE BIN) ;"for LOOK AT BIN THREE, etc. in Robot Pool"
(ACTION INTNUM-F)>
<ROUTINE INTNUM-F ()
<COND (<ADJ-USED ,A?BIN ,INTNUM>
<COND (<NOT <EQUAL? ,HERE ,ROBOT-POOL>>
<TELL ,YOU-CANT "see any bin here!]" CR>)
(<G? ,P-NUMBER 3>
<TELL "There are only three bins!" CR>)
(T
<TELL ,REFER-TO-BIN>)>)
(<AND <EQUAL? <GET ,P-NAMW 0> ,W?ONE ,W?TWO ,W?THREE>
<GLOBAL-IN? ,KEYPAD ,HERE>
<VERB? PUSH TYPE>> ;"TYPE ONE for example"
<TELL
"[Use numerals: for example, TYPE 5 rather than TYPE FIVE.]" CR>)
(<AND <VERB? EXAMINE SHOOT ON OFF KILL MUNG>
<EQUAL? <GET ,WELDER-TABLE ,WELDER-TABLE-POINTER>
,P-NUMBER>
<IN? ,WELDER ,HERE>>
<COND (<PRSO? ,INTNUM>
<PERFORM ,PRSA ,WELDER ,PRSI>)
(T
<PERFORM ,PRSA ,PRSO ,WELDER>)>
<RTRUE>)
(<OR <AND <VERB? ENTER>
<EQUAL? ,P-PRSA-WORD ,W?ENTER>
<GLOBAL-IN? ,KEYPAD ,HERE>>
<AND <VERB? PUSH>
<GLOBAL-IN? ,KEYPAD ,HERE>>>
<PERFORM ,V?TYPE ,INTNUM>
<RTRUE>)
(<AND <VERB? SET>
<NOT ,PRSI>
<EQUAL? ,HERE ,COMMANDERS-QUARTERS>>
<COND (<EQUAL? ,P-NUMBER ,DIAL-SETTING>
<TELL ,SENILITY-STRIKES>)
(<G? ,P-NUMBER 8000>
<TELL "The dial goes up to only 8000." CR>)
(T
<SETG DIAL-SETTING ,P-NUMBER>
<TELL "\"Click.\"" CR>)>)
(<VERB? WAIT-FOR>
<COND (<G? ,P-NUMBER 40>
<TELL ,TOO-LONG-TO-WAIT>)
(T
<V-WAIT>)>)
(<VERB? WAIT-UNTIL>
<COND (<AND <G? ,P-NUMBER ,INTERNAL-MOVES>
<L? <- ,P-NUMBER ,INTERNAL-MOVES> 41>>
<V-WAIT>)
(T
<TELL ,TOO-LONG-TO-WAIT>)>)
(<OR <TOUCHING? ,INTNUM>
<VERB? SHOOT>>
<TELL ,HUH>)>>
<OBJECT PSEUDO-OBJECT
(IN LOCAL-GLOBALS)
(DESC "pseudo") ;"DESC must be 6 characters long! --pdl 3/4/86"
(ACTION ME-F)>
<OBJECT IT
(IN GLOBAL-OBJECTS)
(SYNONYM IT THEM)
(DESC "it")
(FLAGS VOWELBIT NARTICLEBIT TOUCHBIT)>
<OBJECT HIM
(IN GLOBAL-OBJECTS)
(SYNONYM HIM HER HIMSELF HERSELF)
(DESC "him")
(FLAGS NARTICLEBIT TOUCHBIT)>
;<OBJECT HER
(IN GLOBAL-OBJECTS)
(SYNONYM HER HERSELF)
(DESC "her")
(FLAGS NARTICLEBIT 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 (<AND .PRSO?
<PRSO-MOBY-VERB?>>
<SET X T>)
(<AND <NOT .PRSO?>
<PRSI-MOBY-VERB?>>
<SET X T>)>
<COND (.X ;"the verb is a moby-find verb"
<COND (<SET OBJ <FIND-NOT-HERE .TBL .PRSO?>>
<COND (<NOT <EQUAL? .OBJ ,NOT-HERE-OBJECT>>
<RTRUE>)>)
(T
<RFALSE>)>
<COND (<VERB? WALK-TO FOLLOW>
<V-WALK-AROUND>)
(T
<TELL "[" ,YOULL-HAVE-TO "be more specific.]" CR>)>)
(T
<COND (<EQUAL? ,WINNER ,PROTAGONIST>
<TELL "You">)
(T
<TELL "Looking confused," T ,WINNER " says, \"I">)>
<TELL " can't see">
<COND (<NOT <NAME? ,P-XNAM>>
<TELL " any">)>
<NOT-HERE-PRINT .PRSO?>
<TELL " here!">
<COND (<NOT <EQUAL? ,WINNER ,PROTAGONIST>>
<TELL "\"">)>
<CRLF>)>
<STOP>>
<ROUTINE PRSO-MOBY-VERB? ()
<COND (<OR <EQUAL? ,PRSA ,V?WHAT ,V?WHERE ,V?WAIT-FOR>
<EQUAL? ,PRSA ,V?WALK-TO ,V?CALL ,V?SAY>
<EQUAL? ,PRSA ,V?FIND ,V?FOLLOW ;,V?BUY>>
<RTRUE>)
(T
<RFALSE>)>>
<ROUTINE PRSI-MOBY-VERB? ()
<COND (<EQUAL? ,PRSA ,V?ASK-ABOUT ,V?ASK-FOR ,V?TELL-ABOUT>
<RTRUE>)
(T
<RFALSE>)>>
<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 "[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>
<THIS-IS-IT ,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>
<THIS-IS-IT ,PRSO>)
(T
<SETG PRSI .OBJ>)>
<RFALSE>)
(T
,NOT-HERE-OBJECT)>>
<ROUTINE NOT-HERE-PRINT (PRSO?)
<COND (,P-OFLAG
<COND (,P-XADJ
<TELL " ">
<PRINTB ,P-XADJN>)>
<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
(IN GLOBAL-OBJECTS)
(DESC "floor")
(SYNONYM FLOOR GROUND DECK)
(ACTION GROUND-F)>
<ROUTINE GROUND-F ()
<COND (<VERB? CLIMB-ON ENTER>
<COND (,STUNNED
<TELL ,LOOK-AROUND>)
(T
<SETG C-ELAPSED 31>
<TELL
"After a brief squat on the floor, you stand again." CR>)>)
(<VERB? CLEAN>
<SETG AWAITING-REPLY 1>
<QUEUE I-REPLY <+ ,C-ELAPSED 2>>
<TELL "Do you also do windows?" CR>)
(<VERB? LOOK-UNDER>
<IMPOSSIBLES>)
(<AND <VERB? OPEN>
<EQUAL? ,HERE ,BOTTOM-OF-AIR-SHAFT>>
<PERFORM ,V?OPEN ,GRATING>
<RTRUE>)
(<VERB? LEAVE>
<DO-WALK ,P?UP>)>>
<OBJECT WALLS
(IN GLOBAL-OBJECTS)
(DESC "wall")
(SYNONYM WALL WALLS)
(ACTION WALLS-F)>
<ROUTINE WALLS-F ()
<COND (<AND <VERB? EXAMINE>
<EQUAL? ,HERE ,HOLDING-TANK-LEVEL>>
<TELL ,BLASTED-OPEN ,PERIOD-CR>)>>
<OBJECT CEILING
(IN GLOBAL-OBJECTS)
(DESC "ceiling")
(SYNONYM CEILIN ROOF)
(ADJECTIVE TOWERING)
(ACTION CEILING-F)>
<ROUTINE CEILING-F ()
<COND (<AND <VERB? EXAMINE SEARCH>
<EQUAL? ,HERE ,PET-STORE>>
<COND (<IN? ,PANEL ,HERE>
<TELL
"There's a panel mounted in the ceiling. ">
<PERFORM ,V?EXAMINE ,PANEL>
<RTRUE>)
;"if panel has no LOC, it means that you blew it up"
(<IN? ,PANEL ,LOCAL-GLOBALS>
<MOVE ,PANEL ,HERE>
<THIS-IS-IT ,PANEL>
<TELL
"As you look carefully, you notice something that a casual inspection of the
Pet Store would never have uncovered: a panel mounted in the ceiling." CR>)>)
(<AND <VERB? EXAMINE>
<EQUAL? ,HERE ,DOME>>
<TELL ,DOME-DESC CR>)
(<VERB? LOOK-UNDER>
<PERFORM ,V?LOOK>
<RTRUE>)>>
<OBJECT AIR
(IN GLOBAL-OBJECTS)
(DESC "air")
(SYNONYM AIR)
(FLAGS NARTICLEBIT VOWELBIT)>
<OBJECT GLOBAL-ROOM
(IN GLOBAL-OBJECTS)
(DESC "room")
(SYNONYM ROOM SHOP STORE OFFICE)
(ADJECTIVE LARGE SMALL REC PET)
(ACTION GLOBAL-ROOM-F)>
<ROUTINE GLOBAL-ROOM-F ()
<COND (<VERB? LOOK LOOK-INSIDE EXAMINE>
<V-LOOK>)
(<VERB? ENTER WALK-TO>
<V-WALK-AROUND>)
(<VERB? LEAVE EXIT DISEMBARK>
<DO-WALK ,P?OUT>)
(<AND <VERB? WALK-AROUND>
<EQUAL? ,HERE ,BARBERSHOP>
<NOT ,MIRROR-BROKEN>
<ULTIMATELY-IN? ,PLATINUM-DETECTOR>
<FSET? ,PLATINUM-DETECTOR ,ACTIVEBIT>>
<PERFORM ,V?FOLLOW ,PLATINUM-DETECTOR>
<RTRUE>)
(<VERB? SEARCH>
<COND (<NOT ,LIT>
<TELL ,TOO-DARK CR>)
(<AND <EQUAL? ,HERE ,GREASY-STRAW>
<NOT <FSET? ,NECTAR ,TOUCHBIT>>>
<MOVE ,NECTAR ,HERE>
<THIS-IS-IT ,NECTAR>
<TELL
"You spot a cup of Ramosian Fire Nectar behind the counter!" CR>)
(T
<TELL
"A cursory search of the room reveals nothing new." CR>)>)
(<AND <VERB? PUT>
<PRSI? ,GLOBAL-ROOM>>
<COND (<EQUAL? ,P-PRSA-WORD ,W?THROW>
<PERFORM ,V?THROW ,PRSO>
<RTRUE>)
(T
<PERFORM ,V?DROP ,PRSO>
<RTRUE>)>)>>
;<OBJECT STAIRS
(IN LOCAL-GLOBALS)
(DESC "stair")
(SYNONYM STAIR STAIRS STAIRW GANGWAY)
(ACTION STAIRS-F)>
;<ROUTINE STAIRS-F ()
<COND (<VERB? CLIMB-UP>
<DO-WALK ,P?UP>)
(<VERB? CLIMB-DOWN>
<DO-WALK ,P?DOWN>)
(<AND <VERB? THROW>
<PRSI? ,STAIRS>>
<WASTES>)>>
<OBJECT WINDOW
(IN LOCAL-GLOBALS)
(DESC "window")
(SYNONYM WINDOW PORT VIEWPORT)
(ADJECTIVE VIEW LARGE DIRTY)
(ACTION WINDOW-F)>
<ROUTINE WINDOW-F ()
<COND (<VERB? LOOK-INSIDE>
<COND (<EQUAL? ,HERE ,SHADY-DANS>
<TELL ,DANS-LOT-DESC CR>)
(<EQUAL? ,HERE ,DOCKING-BAY-2 ,CARGO-BAY>
<TELL "You see the interior of" TR ,SPACETRUCK-OBJECT>)
(<AND <EQUAL? ,SPACETRUCK-COUNTER 5>
<EQUAL? ,COURSE-PICKED ,RIGHT-COURSE>>
<TELL "You see an empty docking bay." CR>)
(<EQUAL? ,SPACETRUCK-COUNTER -1>
<TELL "You see a large cargo bay." CR>)
(<AND <EQUAL? ,SPACETRUCK-COUNTER 4>
<EQUAL? ,COURSE-PICKED ,RIGHT-COURSE>>
<TELL
" You are approaching the station from slightly above it (on the galactic
plane), thus offering a good view of the station's layout. In the center is
the large, spherical Command Module. Jutting \"north\" from it is a smaller
Sub-Module. Joining the Command Module, at its two other connection points,"
,TANGLE-OF-TUBES " These form a \"village,\" the sort of seedy, unauthorized
village that frequently collects around a space station." CR>)
(T
<TELL
"You see nothing but the majestic sweep of the galaxy." CR>)>)
(<VERB? CLEAN>
<SETG AWAITING-REPLY 1>
<QUEUE I-REPLY <+ ,C-ELAPSED 2>>
<TELL "Do you also do floors?" CR>)>>
<OBJECT SIGN
(IN LOCAL-GLOBALS)
(DESC "sign")
(SYNONYM SIGN)
(ADJECTIVE LARGE RED EYE-CATCHING)
(FLAGS READBIT)
(ACTION SIGN-F)>
<ROUTINE SIGN-F ()
<COND (<AND <EQUAL? ,HERE ,DOME>
<NOT <IN? ,HOUSING ,DOME>>>
<CANT-SEE ,SIGN>)
(<VERB? READ>
<COND (<EQUAL? ,HERE ,DOME>
<PERFORM ,V?READ ,HOUSING>
<RTRUE>)
(<EQUAL? ,HERE ,GYM>
<TELL
"\"IMPORTANT! The " D ,EXERCISE-MACHINE " has diagnostic frequencies which
communicate with each other on frequency 710. Do not bring anything which
broadcasts on that frequency within range of the machine!\"">
<COND (<NOT <IN? ,EXERCISE-MACHINE ,GYM>>
<TELL
" Strangely, you don't see any " 'EXERCISE-MACHINE " anywhere in the gym.">)>
<CRLF>)
(<EQUAL? ,HERE ,SHIPPING-ROOM>
<TELL
"\"Always return the forklift to the shipping room when it's not in
use! THIS MEANS YOU!\"" CR>)
(<EQUAL? ,HERE ,GREASY-STRAW>
<TELL ,RESTAURANT-SIGN-TEXT CR>)
(<EQUAL? ,HERE ,TRADING-POST>
<TELL
"\"!!!BEST PRICES IN TOWN!!!|
IF YOU DON'T SEE IT ASK FOR IT!|
Illegal wares shown by appointment only.|
FREZONE (tm) explosive available.\"" CR>)
(<EQUAL? ,HERE ,PET-STORE>
<TELL
"\"SPECIAL!!! The best pet a lonely spacer could ever hope for!|
" D ,BALLOON "s are fascinating critters. Filled with hydrogen, they float
freely through the air like small dirigibles.|
With their translucent bodies and iridescent skin, they're a beautiful
addition to the decor of any living bubble. Docile and friendly, " D ,BALLOON
"s are easy to care for, feeding on airborne spores!|
Limited supply!! Order yours today!!\"|
You recall one fact about " D ,BALLOON "s which the sign fails to mention:
they propel themselves around by ejecting digestive gasses. This makes them
one of the smelliest pets imaginable." CR>)
(<EQUAL? ,HERE ,OPIUM-DEN>
<TELL
"The sign is from the government's latest anti-drug crusade. It depicts
the president of the Third Galactic Union, her hands crossed across her
chest in a defiant pose, with the caption, \"Drugs are a no-no!\" You
notice that someone has drawn a mustache on her." CR>)
(T
<TELL
"\"TRADING POST VACUUM STORAGE AREA|
Trespassers will be spaced!\"" CR>)>)>>
<OBJECT EQUIPMENT
(IN LOCAL-GLOBALS)
(DESC "equipment")
(SYNONYM EQUIPMENT MACHIN)
(ADJECTIVE REPAIR FABRICATION DIAGNO ROBOT AUTHORIZATION)
(FLAGS VOWELBIT)
(ACTION EQUIPMENT-F)>
<ROUTINE EQUIPMENT-F ()
<COND (<VERB? EXAMINE>
<COND (<EQUAL? ,HERE ,ROBOT-POOL>
<TELL ,ROBOT-POOL-EQUIPMENT-DESC CR>)
(T
<TELL
"Since this equipment has nothing to do with the filling out or filing
of multi-part forms, it's far outside your area of expertise." CR>)>)
(<AND <VERB? USE>
<EQUAL? ,HERE ,ROBOT-POOL>>
<TELL "Put the form in the slot, you dolt!" CR>)
(<VERB? ON OFF>
<PERFORM ,V?EXAMINE ,EQUIPMENT>
<RTRUE>)>>
<OBJECT FIXTURES
(IN LOCAL-GLOBALS)
(DESC "sanfac fixture")
(SYNONYM SHOWER STALL STALLS BATHTUB)
(ADJECTIVE TOILET SINK SINKS TUB TUBS)
(ACTION FIXTURES-F)>
<ROUTINE FIXTURES-F ()
<COND (<VERB? ENTER WALK-TO USE>
<TELL
"This story doesn't go into that sort of detail." CR>)
(<AND <VERB? TAKE ON>
<NOUN-USED ,W?SHOWER ,FIXTURES>>
<PERFORM ,V?USE ,FIXTURES>
<RTRUE>)>>
<OBJECT HOLE ;"for DRILL HOLE IN X"
(IN GLOBAL-OBJECTS)
(DESC "hole")
(SYNONYM HOLE)
(ACTION HOLE-F)>
<ROUTINE HOLE-F ()
<COND (<AND <VERB? DRILL-HOLE>
<PRSO? ,HOLE>>
<RFALSE>)
(<AND <VERB? DRILL>
<PRSO? ,HOLE>>
<PERFORM ,V?DRILL-HOLE ,HOLE ,WALLS>
<RTRUE>)
(<AND <NOT <PRSO-MOBY-VERB?>>
<NOT <PRSI-MOBY-VERB?>>>
<CANT-SEE ,HOLE>)>>
<OBJECT LADDER
(IN LOCAL-GLOBALS)
(DESC "ladder")
(SYNONYM LADDER)
(ACTION LADDER-F)>
<ROUTINE LADDER-F ()
<COND (<VERB? CLIMB-UP>
<DO-WALK ,P?UP>)
(<VERB? CLIMB-DOWN>
<DO-WALK ,P?DOWN>)>>
<OBJECT HANDS
(IN GLOBAL-OBJECTS)
(SYNONYM HANDS HAND FINGER)
(ADJECTIVE BARE MY YOUR)
(DESC "your hand")
(FLAGS TOUCHBIT NARTICLEBIT)
(ACTION HANDS-F)>
<ROUTINE HANDS-F ("AUX" ACTOR)
<COND (<VERB? APPLAUD>
<SETG PRSO <>>
<RFALSE>)
(<VERB? SHAKE>
<COND (<SET ACTOR <FIND-IN ,HERE ,ACTORBIT "with">>
<PERFORM ,V?SHAKE-WITH ,HANDS .ACTOR>
<RTRUE>)
(T
<TELL "Pleased to meet you." CR>)>)
(<VERB? COUNT>
<COND (<NOUN-USED ,W?FINGER ,HANDS>
<TELL "Ten">)
(T
<TELL "Two">)>
<TELL ", as usual." CR>)
(<VERB? CLEAN>
<TELL "Done." CR>)
;(<AND <VERB? PUT> ;"handled in PRE-PUT"
<PRSO? ,HANDS>>
<PERFORM ,V?REACH-IN ,PRSI>
<RTRUE>)
(<VERB? SHOOT>
<JIGS-UP
"Done. You might remain alive long enough to type EXAMINE MY STUMP.
Oops, I guess not.">)
(<VERB? DRILL>
<TELL
"Hmmm. Are you trying for a hole in " 'PRSO
" to match the hole in your head?" CR>)
(<AND <VERB? TAKE-WITH>
<PRSI? ,HANDS>>
<PERFORM ,V?TAKE ,PRSO>
<RTRUE>)>>
<OBJECT TONGUE
(IN GLOBAL-OBJECTS)
(DESC "your tongue")
(SYNONYM TONGUE)
(ADJECTIVE YOUR MY)
(FLAGS NARTICLEBIT)
(ACTION TONGUE-F)>
<ROUTINE TONGUE-F ()
<COND (<AND <VERB? PUT-ON RUN-OVER>
<PRSO? ,TONGUE>>
<PERFORM ,V?TASTE ,PRSI>
<RTRUE>)
(<VERB? DRILL>
<HANDS-F>)>>
<OBJECT PROTAGONIST
(IN DECK-TWELVE)
(SYNONYM PROTAG)
(DESC "it")
(FLAGS NARTICLEBIT NDESCBIT INVISIBLE ACTORBIT)>
<OBJECT ME
(IN GLOBAL-OBJECTS)
(SYNONYM I ME MYSELF SELF)
(DESC "yourself")
(FLAGS ;ACTORBIT TOUCHBIT NARTICLEBIT)
(ACTION ME-F)>
<ROUTINE ME-F ()
<COND (<VERB? TELL>
<TELL
"Talking to yourself is a sign of impending mental collapse." CR>
<STOP>)
(<VERB? DRILL>
<TELL
"Why bother? Based on that input, you already have holes in your head!" CR>)
(<AND <VERB? GIVE>
<PRSI? ,ME>>
<PERFORM ,V?TAKE ,PRSO>
<RTRUE>)
(<AND <VERB? SHOW>
<PRSI? ,ME>>
<PERFORM ,V?EXAMINE ,PRSO>
<RTRUE>)
(<VERB? MOVE>
<V-WALK-AROUND>)
(<VERB? SEARCH>
<V-INVENTORY>)
(<AND <VERB? KILL MUNG>
<PRSO? ,ME>>
<JIGS-UP "If you insist.">)
(<VERB? SHOOT>
<JIGS-UP "Wow! A hole where your torso used to be!">)
(<VERB? FIND WHERE>
<TELL "You're in" TR ,HERE>)
(<VERB? FOLLOW>
<TELL "It would be hard not to." CR>)
(<VERB? EXAMINE>
<V-DIAGNOSE>)
(<VERB? ALARM>
<TELL "You are!" CR>)
(<VERB? TAKE>
<TELL "How romantic!" CR>)>>
<OBJECT EVERYONE
(IN LOCAL-GLOBALS)
(DESC "everyone")
(SYNONYM EVERYONE EVERYBODY CREW)
(FLAGS VOWELBIT)
(PLATO-ASK-ABOUT "I was going to ask you the same question!")>
<OBJECT GAME
(IN GLOBAL-OBJECTS)
(DESC "game")
(SYNONYM GAME GAMES HUCKA HIDER)
(FLOYD-ASK-ABOUT "Floyd loves games! Let's play!")>
<OBJECT GRUE
(IN GLOBAL-OBJECTS)
(DESC "lurking grue")
(SYNONYM GRUE BEAST)
(ADJECTIVE LURKING VICIOUS CARNIVOROUS)
(ACTION GRUE-F)>
<ROUTINE GRUE-F ()
<COND (<VERB? WHAT>
<TELL
"Grues are vicious, carnivorous beasts first introduced to Earth by an alien
spaceship during the 22nd century. Grues spread throughout the galaxy alongside
man. Now extinct on all civilized planets, they still exist in some backwater
corners of the galaxy. Their favorite diet is Lieutenants First Class, but
their insatiable appetite is tempered by their fear of light." CR>)
(<OR <TOUCHING? ,GRUE>
<VERB? EXAMINE WALK-TO>>
<TELL "There's no grue in sight, fortunately." CR>)>>
<ROUTINE FORM-SLOT-F ()
<COND (<AND <VERB? PUT>
<PRSI? ,PSEUDO-OBJECT>>
<COND (<PRSO? ,CRUMPLED-FORM>
<TELL
"The form's crumpledness prevents it from sliding into the slot." CR>)
(<AND <PRSO? ,CLASS-THREE-SPACECRAFT-ACTIVATION-FORM>
<EQUAL? ,HERE ,SPACETRUCK>>
<COND (<AND <EQUAL? ,HERE ,SPACETRUCK>
<BOTH-SEATS-NOT-OCCUPIED>>
<TELL "The form is spit back out. ">
<RECORDING
"Safety precautions forbid the activation of the vehicle unless both
the pilot and copilot seats are occupied">)
(T
<REMOVE ,PRSO>
<FSET ,PRSO ,NDESCBIT>
<TELL ,FORM-ACCEPTED>
<RECORDING
"Spacecraft activated. Type in the course heading">)>)
(<AND <PRSO? ,ROBOT-USE-AUTHORIZATION-FORM>
<EQUAL? ,HERE ,ROBOT-POOL>>
<REMOVE ,PRSO>
<FSET ,PRSO ,NDESCBIT>
<TELL ,FORM-ACCEPTED>
<RECORDING
"Authorization approved. Type the bin number of the desired robot">)
(<AND <PRSO? ,ASSIGNMENT-COMPLETION-FORM>
<EQUAL? ,HERE ,DECK-TWELVE>>
<TELL ,FORM-REJECTED>
<RECORDING
"This form has not been validated by a commanding officer">)
(<AND <PRSO? ,VILLAGE-FORM>
<EQUAL? ,HERE ,SOUTH-CONNECTION ,EAST-CONNECTION>>
<COND (<NOT ,VILLAGE-FORM-VALIDATED>
<TELL ,FORM-REJECTED>
<RECORDING
"This form has not been validated by a commanding officer">)
(T
<SETG SCORE <+ ,SCORE 6>>
<SETG ROBOT-EVILNESS <+ ,ROBOT-EVILNESS 1>>
<FSET ,IRIS-HATCH ,OPENBIT>
<REMOVE ,PRSO>
<FSET ,PRSO ,NDESCBIT>
<TELL
"The hatch begins irising open, then sparks and smokes and grinds to a halt.
However, it's about half dilated, wide enough to pass through. Beyond, you
can see a small, dingy connecting tube, rather than the clean and brightly-lit
Sub-Module connector you might have expected." CR>)>)
(<PRSO? ,ROBOT-USE-AUTHORIZATION-FORM
,CLASS-THREE-SPACECRAFT-ACTIVATION-FORM
,ASSIGNMENT-COMPLETION-FORM
,VILLAGE-FORM>
<TELL ,FORM-REJECTED>
<RECORDING "Improper form for this location">)
(<L? <GETP ,P?SIZE ,PRSO> 3>
<TELL
"The slot swallows" T ,PRSO " and then spits it back." CR>)
(T
<DOESNT-FIT "slot">)>)
(<VERB? LOOK-INSIDE>
<TELL ,ONLY-BLACKNESS>)>>
<ROUTINE BOTH-SEATS-NOT-OCCUPIED ()
<COND (<AND <IN? ,PROTAGONIST ,PILOT-SEAT>
<IN? ,FLOYD ,COPILOT-SEAT>>
<RFALSE>)
(<AND <IN? ,PROTAGONIST ,COPILOT-SEAT>
<IN? ,FLOYD ,PILOT-SEAT>>
<RFALSE>)
(T
<RTRUE>)>>
<OBJECT KEYPAD
(IN LOCAL-GLOBALS)
(DESC "keypad")
(SYNONYM KEYPAD)
(FLAGS NDESCBIT)
(ACTION KEYPAD-F)>
<ROUTINE KEYPAD-F ()
<COND (<VERB? PUSH>
<SETG P-NUMBER <- <RANDOM 10> 1>>
<TELL "Randomly, you hit " N ,P-NUMBER ". ">
<PERFORM ,V?TYPE ,INTNUM>
<RTRUE>)>>
<OBJECT DESK
(IN LOCAL-GLOBALS)
(DESC "desk")
(SYNONYM DESK)
(ACTION FURNISHING-F)>
<OBJECT WARDROBE
(IN LOCAL-GLOBALS)
(DESC "wardrobe")
(SYNONYM WARDROBE)
(ACTION FURNISHING-F)>
<OBJECT CUBICLE
(IN LOCAL-GLOBALS)
(DESC "cubicle")
(SYNONYM CUBICLE)
(ACTION FURNISHING-F)>
<ROUTINE FURNISHING-F ()
<COND (<VERB? ENTER OPEN SEARCH LOOK-INSIDE EXAMINE>
<TELL
"You merely find a few personal items of little interest." CR>)
(<VERB? PUT PUT-ON>
<TELL
"The " D ,PRSI " is such a mess that you can't find a good spot
to put" TR ,PRSO>)>>
<OBJECT VILLAGE
(IN LOCAL-GLOBALS)
(DESC "village")
(SYNONYM VILLAGE)
(ADJECTIVE SEEDY NONREGULATION UNAUTHORIZED ILLEGAL SPACE)
(ACTION VILLAGE-F)>
<ROUTINE VILLAGE-F ()
<COND (<AND <EQUAL? ,HERE ,SPACETRUCK>
<OR <NOT <EQUAL? ,SPACETRUCK-COUNTER 4>>
<NOT <EQUAL? ,COURSE-PICKED ,RIGHT-COURSE>>>>
<CANT-SEE ,VILLAGE>)
(<VERB? ENTER WALK-TO EXIT LEAVE DISEMBARK>
<V-WALK-AROUND>)
(<AND <VERB? EXAMINE>
<EQUAL? ,HERE ,SPACETRUCK>>
<TELL "The village" ,TANGLE-OF-TUBES CR>)>>
;"sleeping"
<OBJECT BED
(IN LOCAL-GLOBALS)
(DESC "bed")
(SYNONYM BED BEDS)
(FLAGS VEHBIT SEARCHBIT CONTBIT OPENBIT)
(ACTION BED-F)>
<ROUTINE BED-F ()
<COND (<AND <VERB? WALK-TO>
<NOT <GLOBAL-IN? ,BED ,HERE>>>
<TELL "There's no bed here!" CR>)
(<VERB? ENTER WALK-TO>
<COND (,STUNNED
<YOURE-STUNNED>)
(<G? ,SLEEPY-LEVEL 0>
<MOVE ,PROTAGONIST ,BED>
<QUEUE I-FALL-ASLEEP 22>
<DEQUEUE I-SLEEP-WARNINGS>
<TELL
"Ahhh...the bed is soft and comfortable. You should be
asleep in short order." CR>)
(T
<MOVE ,PROTAGONIST ,BED>
<TELL "You are now in bed." CR>)>)
(<AND <VERB? DISEMBARK STAND EXIT DROP>
<QUEUED? ,I-FALL-ASLEEP>>
<TELL "But you're so tired and this bed is so comfy!" CR>)
(<VERB? LEAVE EXIT DROP>
<PERFORM ,V?DISEMBARK ,BED>
<RTRUE>)
(<AND <VERB? PUT PUT-ON>
<PRSI? ,BED>>
<MOVE ,PRSO ,HERE>
<TELL
"The " D ,PRSO " bounces off the bed" ,LANDS-ON-FLOOR CR>)
(<AND <VERB? LOOK-UNDER>
<IN? ,PROTAGONIST ,BED>>
<TELL
"You're IN the bed, so unless you have X-ray vision..." CR>)
(<AND <VERB? LOOK-UNDER>
<EQUAL? ,HERE ,COMMANDERS-QUARTERS>
<NOT <FSET? ,VALIDATION-STAMP ,TOUCHBIT>>>
<FSET ,VALIDATION-STAMP ,TOUCHBIT>
<MOVE ,VALIDATION-STAMP ,HERE>
<THIS-IS-IT ,VALIDATION-STAMP>
<TELL "You discover a " 'VALIDATION-STAMP "!" CR>)
(<VERB? DRILL KILL SHOOT>
<TELL "That would be a clear case of mattresscide!" CR>)>>
<OBJECT SLEEP
(IN GLOBAL-OBJECTS)
(DESC "sleep")
(SYNONYM SLEEP NAP SNOOZE)
(FLAGS NARTICLEBIT)
(ACTION SLEEP-F)>
<ROUTINE SLEEP-F ()
<COND (<VERB? WALK-TO TAKE>
<V-SLEEP>)>>
<GLOBAL SLEEPY-LEVEL 0>
<ROUTINE I-SLEEP-WARNINGS ()
<COND (<OR <AND <IN? ,WELDER ,HERE>
<G? ,SLEEPY-LEVEL 3>>
,STUNNED>
<QUEUE I-HUNGER-WARNINGS 2>
<RFALSE>)>
<SETG SLEEPY-LEVEL <+ ,SLEEPY-LEVEL 1>>
<TELL " ">
<COND (<IN? ,PROTAGONIST ,BED>
<DEQUEUE I-SLEEP-WARNINGS>
<QUEUE I-FALL-ASLEEP 16>
<TELL
"You suddenly realize how tired you were and how comfortable the bed is.
You should be asleep in no time." CR>)
(<EQUAL? ,SLEEPY-LEVEL 1>
<QUEUE I-SLEEP-WARNINGS 320>
<TELL
"You begin to feel weary. It might be time to think about finding
a nice safe place to sleep." CR>)
(<EQUAL? ,SLEEPY-LEVEL 2>
<QUEUE I-SLEEP-WARNINGS 160>
<TELL
"You're really tired now. You'd better find a place to sleep real soon." CR>)
(<EQUAL? ,SLEEPY-LEVEL 3>
<QUEUE I-SLEEP-WARNINGS 80>
<TELL
"If you don't get some sleep soon you'll probably drop." CR>)
(<EQUAL? ,SLEEPY-LEVEL 4>
<QUEUE I-SLEEP-WARNINGS 40>
<TELL "You can barely keep your eyes open." CR>)
(T ;"SLEEPY-LEVEL is 5"
<COND (<EQUAL? ,HERE ,BED>
<TELL
"You slowly sink into a deep and blissful sleep.">)
(<GLOBAL-IN? ,BED ,HERE>
<MOVE ,PROTAGONIST ,BED>
<TELL
"You climb into one of the beds and immediately fall asleep.">)
(T
<TELL ,YOU-CANT "stay awake a moment longer. You drop ">
<COND (<AND <IN? ,PROTAGONIST ,HERE>
<NOT <FSET? ,HERE ,WEIGHTLESSBIT>>>
<TELL "to the deck and fall ">)>
<TELL "into a deep but fitful sleep.">)>
<WAKING-UP>)>
<COND (<NOT <IN? ,PROTAGONIST ,BED>>
<STOP>)>>
<ROUTINE I-FALL-ASLEEP ()
<COND (<IN? ,WELDER ,HERE>
<QUEUE I-FALL-ASLEEP 2>)>
<TELL " You slowly sink into a deep sleep.">
<DEQUEUE I-FALL-ASLEEP>
<WAKING-UP>>
<GLOBAL DREAMS
<LTABLE 0
"The quiet, dusty corridors stir disturbing memories. You're back on Resida,
the deserted, plague-stricken world where you met Floyd. A hot flush creeps
over you, indicating that the virulent disease that conquered this planet is
beginnning its insidious work on you"
"You are strolling across Deck Four of the Duffy, when suddenly you remember
that you were supposed to have Handwriting Legibility Evaluation Forms -- all
nine parts, for every member of the crew -- on Captain Fussbottom's desk by
7800. It's 7790, and those forms are stored on the other side of the ship.
You try to run, but the floor is covered with glue. You can hear the Captain
calling your name, louder and louder, as you struggle to move your legs"
"You gulp down the last of your Ramosian Fire Nectar and ask the andro-waiter
for another pitcher. This pub makes the finest Nectar on all of Ramos Two, and
you and your shipmates are having a pretty rowdy time. Through the windows of
the pub you can see a mighty, ancient castle, shining in the light of the three
Ramosian moons. The Fire Nectar spreads through your blood and you begin to
feel drowsy"
;"Strangely, you wake back home on Gallium; even more strangely, you are only
eight years old again. You are playing with your pet sponge-cat, Swanzo, by the
the pond in your backyard. Mom is hanging orange towels on the clothesline.
Suddenly the school bully leaps from behind a bush and pushes your head under
the water. You try to scream, but cannot. You feel your life draining away"
"You wake up in a huge stadium, watching an important ceremony. It's a Stellar
Patrol promotion ceremony on Tremain! Suddenly your own name echoes over the
P.A. system -- and down below you see YOURSELF walking up the steps to the stage!
The presiding admiral describes your heroism on Resida, mentioning that you
were awarded the key to the planet, and then asks the ceremonial question,
\"Do you accept promotion to Lieutenant First Class?\" You try to yell \"No!\"
from the stands, but the words are lost in the vastness of the stadium"
"You find yourself in a spacepod outside the docking bays of a large space
station. All the doors are closed. You snap on the radio, and discover that
Floyd is in charge within the station. \"Open the pod bay doors, Floyd,\" you
tell him but he replies, \"I'm sorry, I can't do that,\" and begins laughing
and your air is beginning to run out"
"At last, the Duffy is approaching station Delta Upsilon Upsilon Phi -- your
first rec leave in almost six months. It's even worth the six solid days of
paperwork necessary for a standard half-day leave. Stationfall is millichrons
away, but suddenly you realize that you're all alone on the Duffy! Frantic,
you dash to the deserted bridge, but it's too late to stop the out-of-control