-
Notifications
You must be signed in to change notification settings - Fork 18
/
station.zil
3977 lines (3690 loc) · 124 KB
/
station.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
"STATION for
STATIONFALL
(c) Copyright 1987 Infocom, Inc. All Rights Reserved."
<ROOM DOCKING-BAY-2
(IN ROOMS)
(DESC "Docking Bay #2")
(IN TO SPACETRUCK IF SPACETRUCK-HATCH IS OPEN)
(EAST TO LEVEL-FIVE IF P-WON)
(FLAGS RLANDBIT ONBIT NWELDERBIT)
(GLOBAL AUTO-DOOR SPACETRUCK-OBJECT SPACETRUCK-HATCH WINDOW)
(ACTION DOCKING-BAY-2-F)>
<ROUTINE DOCKING-BAY-2-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"This is a tall, narrow bay. Your " 'SPACETRUCK-OBJECT
" is docked here. Its hatch is ">
<OPEN-CLOSED ,SPACETRUCK-HATCH>
<TELL
". To the east is the huge door into the station.">)>>
<ROOM LEVEL-FIVE
(IN ROOMS)
(DESC "Level Five")
(NORTH TO WORKSHOP IF P-WON)
(NE TO NORTH-JUNCTION)
(EAST PER ELEVATOR-ENTER-F)
(SE TO SOUTH-JUNCTION)
(WEST TO DOCKING-BAY-2 IF P-WON)
(UP TO LEVEL-FOUR)
(DOWN TO LEVEL-SIX)
(LEVEL 5)
(FLAGS RLANDBIT ONBIT)
(GLOBAL CALL-BUTTON AUTO-DOOR ELEVATOR-OBJECT ELEVATOR-SHAFT LADDER)
(ACTION LEVEL-FIVE-F)>
<ROUTINE LEVEL-FIVE-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"You are in the central lobby of the middle level of the space
station. The elevator ">
<COND (<NOT <EQUAL? ,ELEVATOR-LEVEL 5>>
<TELL "shaft ">)>
<TELL
"and call button lie to the east, and the corridor heads around the shaft to
the northeast and southeast. Doors lead north and west" ,LADDER-LEADS>)>>
<ROOM WORKSHOP
(IN ROOMS)
(DESC "Workshop")
(LDESC
"This is a fairly large space where much of the maintenance work for the
station takes place. Some repair work for visiting ships is also done here.
The room is filled with all sorts of repair and fabrication machinery. A
door leads south, and there's an opening to the north.")
(NORTH TO STORAGE-5)
(SOUTH TO LEVEL-FIVE IF P-WON)
(OUT TO LEVEL-FIVE IF P-WON)
(FLAGS RLANDBIT ONBIT)
(GLOBAL AUTO-DOOR EQUIPMENT)>
<OBJECT BEDISTOR
(IN WORKSHOP)
(DESC "twenty-ohm bedistor")
(SYNONYM BEDISTOR)
(ADJECTIVE TWENTY OHM)
(SIZE 5)
(FLAGS TAKEBIT)
(PLATO-ASK-ABOUT
"I'm really not at all mechanically inclined. My sincerest apologies.")
(FLOYD-ASK-ABOUT
"It's a kind of a thingamabob for putting in a, you know, a whosiwhatsis.")>
<ROOM STORAGE-5
(IN ROOMS)
(DESC "Storage")
(LDESC
"This is one of the storage areas. Exits lie to the east and south.")
(EAST TO NORTH-CONNECTION IF P-WON)
(SOUTH TO WORKSHOP)
(OUT TO NORTH-CONNECTION)
(FLAGS RLANDBIT)
(GLOBAL AUTO-DOOR)>
<OBJECT JAMMER
(IN STORAGE-5)
(DESC "jammer")
(SYNONYM JAMMER SOCKETS FREQUENCY)
(FLAGS TAKEBIT CONTBIT SEARCHBIT OPENBIT LIGHTBIT)
(CAPACITY 10)
(SIZE 15)
(ACTION JAMMER-F)>
<GLOBAL JAMMER-SETTING 337>
<ROUTINE JAMMER-F ()
<COND (<VERB? EXAMINE>
<TELL
"The jammer is a black box with a short antenna. It has ">
<COND (<IN? ,TWENTY-PRONG-FROMITZ-BOARD ,JAMMER>
<TELL
"a " D ,TWENTY-PRONG-FROMITZ-BOARD " plugged into it">)
(T
<TELL "twenty tiny sockets on one side">)>
<TELL ". The jammer, which is o">
<COND (<FSET? ,JAMMER ,ACTIVEBIT>
<TELL "n">)
(T
<TELL "ff">)>
<TELL
", looks as if it can be set to any frequency between 0 and
1400; it is currently set to " N ,JAMMER-SETTING ,PERIOD-CR>)
(<VERB? OPEN CLOSE>
<TELL ,HUH>)
(<AND <VERB? PUT>
<PRSI? ,JAMMER>
<NOT <PRSO? ,TWENTY-PRONG-FROMITZ-BOARD>>>
<DOESNT-FIT "twenty tiny sockets">)
(<AND <VERB? CONNECT>
<EQUAL? ,TWENTY-PRONG-FROMITZ-BOARD ,PRSO ,PRSI>>
<PERFORM ,V?PUT ,TWENTY-PRONG-FROMITZ-BOARD ,JAMMER>
<RTRUE>)
(<AND <VERB? CONNECT>
<EQUAL? ,TWELVE-PRONG-FROMITZ-BOARD ,PRSO ,PRSI>>
<PERFORM ,V?PUT ,TWELVE-PRONG-FROMITZ-BOARD ,JAMMER>
<RTRUE>)
(<AND <VERB? SET>
<PRSO? ,JAMMER>>
<COND (<NOT ,PRSI>
<TELL ,NEXT-TIME>)
(<NOT <PRSI? ,INTNUM>>
<TELL ,HUH>)
(<EQUAL? ,P-NUMBER ,JAMMER-SETTING>
<TELL ,SENILITY-STRIKES>)
(<OR <L? ,P-NUMBER 0>
<G? ,P-NUMBER 1400>>
<TELL "The jammer's range is 0 to 1400." CR>)
(T
<SETG JAMMER-SETTING ,P-NUMBER>
<TELL "You set the jammer to " N ,JAMMER-SETTING>
<COND (<IN? ,FORKLIFT ,HERE>
<TELL ". ">
<PERFORM ,V?OFF ,JAMMER>
<RTRUE>)
(T
<TELL ,PERIOD-CR>)>)>)
(<AND <VERB? COUNT>
<NOUN-USED ,W?SOCKETS ,JAMMER>>
<TELL "20." CR>)
(<AND <VERB? OFF>
<IN? ,FORKLIFT ,HERE>>
<FCLEAR ,JAMMER ,ACTIVEBIT>
<REMOVE ,FORKLIFT>
<REMOVE ,EXERCISE-MACHINE>
<DEQUEUE I-FORKLIFT>
<TELL
"The " 'EXERCISE-MACHINE " springs to life, its powerful arms clamping shut on
the forklift. The vehicle belches exhaust as it tries to free itself. The
two machines tumble over in a death grip and then explode! When the smoke
clears, there's not a trace of either machine." CR>)>>
<ROOM NORTH-JUNCTION
(IN ROOMS)
(DESC "North Junction")
(LDESC
"The central corridor continues around to the southeast and southwest, but
another corridor joins from the north. There's a door to the east and a
doorway to the northeast.")
(NORTH TO NORTH-CONNECTION)
(NE TO PX)
(EAST TO SICK-BAY IF P-WON)
(SE TO EAST-JUNCTION)
(SW TO LEVEL-FIVE)
(FLAGS RLANDBIT ONBIT)
(GLOBAL AUTO-DOOR)>
<ROOM NORTH-CONNECTION
(IN ROOMS)
(DESC "North Connection")
(LDESC
"The corridor widens here as it approaches the skin of the space station
at the point where a Scientific Sub-Module would connect. Sure enough, the
connecting tube of a Sub-Module begins just to the north! An auto-door lies
to the west. Opposite it, a doorway leads east. A junction is visible to
the south.")
(NORTH TO TUBE)
(EAST TO PX)
(SOUTH TO NORTH-JUNCTION)
(WEST TO STORAGE-5 IF P-WON)
(FLAGS RLANDBIT ONBIT)
(GLOBAL AUTO-DOOR)>
<ROOM PX
(IN ROOMS)
(DESC "The PX")
(LDESC
"This is the shop for station personnel, selling everything from postcards
to chewing gum at inflated prices. Exits lead west and southwest.")
(SW TO NORTH-JUNCTION)
(WEST TO NORTH-CONNECTION)
(FLAGS RLANDBIT ONBIT)
(GLOBAL KEYPAD)
(THINGS <PSEUDO (DISPEN SCREEN DISPENSER-SCREEN-F)
(COIN SLOT COIN-SLOT-F)
(DISPEN HOLE DISPENSER-HOLE-F)>)>
<OBJECT DISPENSER
(IN PX)
(DESC "dispenser")
(FDESC ;"so it'll get printed before other DESCs"
"In the corner of the PX is a Stellar Patrol dispensing machine, consisting
of a screen (displaying the dispenser's \"exciting\" offerings), a slot (for
coin insertion), a keypad (for typing your selection), and a hole (where
the dispensed item hopefully -- but rarely -- arrives).")
(SYNONYM DISPEN MACHIN)
(ADJECTIVE DISPEN VENDIN)
(ACTION DISPENSER-F)>
<ROUTINE DISPENSER-F ()
<COND (<VERB? EXAMINE>
<TELL <GETP ,DISPENSER ,P?FDESC> CR>)
(<AND <VERB? PUT>
<PRSI? ,DISPENSER>>
<COND (<PRSO? ,COIN>
<REMOVE ,COIN>
<FSET ,DISPENSER ,TOUCHBIT>
<TELL "\"Clink!\" The coin drops into the slot." CR>)
(T
<DOESNT-FIT "coin slot">)>)
(<VERB? DRILL>
<TELL
"We quote from the Stellar Patrol Demolitions Training Manual, Edition
37\54-GS108. \"Why You Should Never Drill Into Active Machinery: Reason #7.
You may" ,STRIKE-POWER-SOURCE "\"|
As you drill into the dispenser, you" ,STRIKE-POWER-SOURCE>
<JIGS-UP
" In case you were napping during Demolitions Training, this means that you're
now a fine layer of ash all over the walls of the PX.">)
(<VERB? SHOOT>
<REMOVE ,DISPENSER>
<TELL
"Okay, but you'll have to answer to the Stellar Patrol Dispensing Machine
Company... BLAM! The dispenser is dispensed." CR>)
(<AND <VERB? KICK KILL MUNG SHAKE PUSH>
<FIRST? ,DISPENSER>>
<TELL
"This fails to dislodge the " D <FIRST? ,DISPENSER> ", but it does help relieve
some of your aggressive feelings toward the stupid dispenser." CR>)
(<VERB? LOOK-INSIDE>
<TELL ,ONLY-BLACKNESS>)>>
<ROUTINE COIN-SLOT-F ()
<COND (<NOT <IN? ,DISPENSER ,HERE>>
<CANT-SEE ,PSEUDO-OBJECT>)
(<VERB? LOOK-INSIDE>
<TELL ,ONLY-BLACKNESS>)
(<VERB? SHOOT>
<PERFORM ,V?SHOOT ,DISPENSER ,ZAPGUN>
<RTRUE>)
(<AND <VERB? PUT>
<PRSI? ,PSEUDO-OBJECT>>
<PERFORM ,V?PUT ,PRSO ,DISPENSER>
<RTRUE>)>>
<ROUTINE DISPENSER-SCREEN-F ()
<COND (<NOT <IN? ,DISPENSER ,HERE>>
<CANT-SEE ,PSEUDO-OBJECT>)
(<VERB? SHOOT>
<PERFORM ,V?SHOOT ,DISPENSER ,ZAPGUN>
<RTRUE>)
(<VERB? EXAMINE READ>
<TELL
"\"--- STELLAR PATROL VENDO-MATIC ---|
all items: 1 galakmid|
1. Patrol Songbook (SOLD OUT)|
2. Set of Postcards (SOLD OUT)|
3. ID Card Polish (SOLD OUT)|
4. Pilot's Compass (SOLD OUT)|
5. Patrol Pen & Pencil Set (SOLD OUT)|
6. All-Purpose Timer|
7. Pocket Computer (SOLD OUT)|
8. Birth Control Pills (SOLD OUT)|
9. Large Drill Bit\"" CR>)>>
<ROUTINE DISPENSER-HOLE-F ()
<COND (<NOT <IN? ,DISPENSER ,HERE>>
<CANT-SEE ,PSEUDO-OBJECT>)
(<VERB? REACH-IN>
<COND (<OR <IN? ,TIMER ,DISPENSER>
<IN? ,LARGE-BIT ,DISPENSER>>
<TELL
"You can just feel something with your fingertips, but you
can't get a grip on it!" CR>)
(T
<TELL
"You reach as far into the dispenser as you can, but feel nothing." CR>)>)
(<VERB? SHOOT>
<PERFORM ,V?SHOOT ,DISPENSER ,ZAPGUN>
<RTRUE>)
(<VERB? LOOK-INSIDE>
<TELL ,ONLY-BLACKNESS>)
(<AND <VERB? PUT>
<PRSI? ,PSEUDO-OBJECT>>
<TELL "You shove" T ,PRSO " up into the hole.">
<COND (<AND <PRSO? ,OSTRICH-NIP>
<IN? ,OSTRICH ,HERE>>
<TELL
" The ostrich squawks and sticks its head up the hole after the nip.">
<OSTRICH-INTO-DISPENSER>
<TELL " A moment later, the nip falls to the deck. ">
<PERFORM ,V?GIVE ,OSTRICH-NIP ,OSTRICH>
<RTRUE>)
(T
<MOVE ,PRSO ,HERE>
<TELL
" A moment later, it drops out" ,LANDS-ON-FLOOR CR>)>)>>
<ROUTINE OSTRICH-INTO-DISPENSER ()
<COND (<FIRST? ,DISPENSER>
<SETG ROBOT-EVILNESS <+ ,ROBOT-EVILNESS 1>>
<SETG SCORE <+ ,SCORE 6>>
<TELL
" It jerks its head back out, squawking even more loudly, and a moment
later a " D <FIRST? ,DISPENSER> " falls out of the hole" ,LANDS-ON-FLOOR>
<MOVE <FIRST? ,DISPENSER> ,HERE>)>>
<OBJECT LARGE-BIT
(DESC "large drill bit")
(SYNONYM BIT BITS)
(ADJECTIVE LARGE DRILL)
(FLAGS TAKEBIT)
(PLATO-ASK-ABOUT
"I'm really not at all mechanically inclined. My sincerest apologies.")
(FLOYD-ASK-ABOUT
"It's a kind of a thingamabob for connecting a, you know, a whosiwhatsis.")
(SIZE 4)
(ACTION BIT-F)>
<OBJECT TIMER
(DESC "timer")
(SYNONYM TIMER)
(ADJECTIVE ALL-PURPOSE)
(FLAGS TAKEBIT)
(SIZE 10)
(ACTION TIMER-F)>
<GLOBAL TIMER-SETTING 0>
<ROUTINE TIMER-F ()
<COND (<VERB? EXAMINE>
<TELL
"As advertised, it is a standard, all-purpose timer. It can be set to any
number up to 100, and is currently set to " N ,TIMER-SETTING ". The timer ">
<COND (,TIMER-CONNECTED
<TELL "is connected to a detonator">)
(T
<TELL "has one connection point">)>
<COND (<QUEUED? ,I-TIMER>
<TELL ", and is ticking loudly">)>
<TELL ,PERIOD-CR>)
(<VERB? SET>
<COND (<NOT ,PRSI>
<TELL ,NEXT-TIME>)
(<NOT <PRSI? ,INTNUM>>
<TELL "You can set the timer only to a number!" CR>)
(<G? ,P-NUMBER 100>
<TELL "The timer has settings up to only 100." CR>)
;(<NOT <EQUAL? <MOD ,P-NUMBER 10> 0>>
<TELL
"You can set the timer only to increments of 10." CR>)
(T
<SETG TIMER-SETTING ,P-NUMBER>
<TELL "You set the timer to " N ,TIMER-SETTING>
<COND (<G? ,TIMER-SETTING 0>
<QUEUE I-TIMER <+ ,C-ELAPSED 2>>
<TELL ". Instantly, it begins ticking loudly">)
(T
<DEQUEUE I-TIMER>)>
<TELL ,PERIOD-CR>)>)
(<AND <VERB? DISCONNECT>
<NOT ,PRSI>
,TIMER-CONNECTED>
<PERFORM, PRSA ,TIMER ,DETONATOR>
<RTRUE>)
(<AND <VERB? CONNECT>
<EQUAL? ,EXPLOSIVE ,PRSO ,PRSI>>
<TELL
,YOU-CANT "connect the timer directly to the explosive." CR>)
(<AND <VERB? OFF>
<QUEUED? ,I-TIMER>>
<SETG P-NUMBER 0>
<PERFORM ,V?SET ,TIMER ,INTNUM>
<RTRUE>)
(<AND <VERB? LISTEN>
<QUEUED? ,I-TIMER>>
<TELL "\"Tick, tick...\"" CR>)>>
;"routine I-TIMER moved to INTERRUPTS file"
<ROUTINE DESTROY-EXPLOSIVE-CONT ("AUX" L X)
<SET L <LOC ,EXPLOSIVE>>
<REPEAT ()
<COND (<IN? .L ,ROOMS> ;"don't remove the room!"
<RETURN>)
(<FSET? .L ,VEHBIT> ;"don't remove a vehicle!"
<RETURN>)>
<SET X <LOC .L>>
<COND (<NOT <EQUAL? .L ,PEDESTAL>>
<REMOVE .L>)>
<SET L .X>>>
<ROOM SICK-BAY
(IN ROOMS)
(DESC "Sick Bay")
(LDESC
"Surrounding the beds of this infirmary is the finest diagnostic equipment
that unlimited Stellar Patrol budgets can buy. To the east, an ID reader
indicates a security door. You can leave to the west or southeast.")
(EAST TO BRIG IF SECURITY-DOOR IS OPEN)
(SE TO EAST-CONNECTION IF P-WON)
(WEST TO NORTH-JUNCTION IF P-WON)
(FLAGS RLANDBIT ONBIT NWELDERBIT)
(GLOBAL AUTO-DOOR BED EQUIPMENT SECURITY-DOOR ID-READER)>
<ROOM BRIG
(IN ROOMS)
(DESC "Brig")
(LDESC
"This is a modest prison, with three cells. The only exit is west.")
(WEST TO SICK-BAY IF P-WON)
(OUT TO SICK-BAY IF P-WON)
(FLAGS RLANDBIT ONBIT NWELDERBIT FLOYDBIT)
(GLOBAL SECURITY-DOOR)
(THINGS <PSEUDO (CELLS CELL CELL-F)
(<> LOCK BRIG-LOCK-F)>)>
<ROUTINE CELL-F ()
<COND (<VERB? ENTER WALK-TO OPEN UNLOCK>
<TELL
"The cells are all locked with high-security locks." CR>)
(<VERB? LOOK-INSIDE>
<TELL "The cells are all empty." CR>)>>
<ROUTINE BRIG-LOCK-F ()
<COND (<VERB? OPEN UNLOCK PICK>
<COND (<PRSI? ,KEY>
<SETG PRSO ,KEY>
<DOESNT-FIT "lock">)
(T
<YUKS>)>)
(<AND <VERB? PUT>
<PRSO? ,KEY>>
<DOESNT-FIT "lock">)>>
<ROOM EAST-JUNCTION
(IN ROOMS)
(DESC "East Junction")
(LDESC
"The corridor continues around to the northwest and southwest, and an
adjoining one heads east.")
(EAST TO EAST-CONNECTION)
(SW TO SOUTH-JUNCTION)
(NW TO NORTH-JUNCTION)
(FLAGS RLANDBIT ONBIT)>
<ROOM EAST-CONNECTION
(IN ROOMS)
(DESC "East Connection")
(EAST PER VILLAGE-BOUNDARY-F)
(SOUTH TO COMM-CENTER)
(SW TO STATION-CONTROL)
(WEST TO EAST-JUNCTION)
(NW TO SICK-BAY IF P-WON)
(FLAGS RLANDBIT ONBIT)
(GLOBAL AUTO-DOOR IRIS-HATCH)
(ACTION EAST-CONNECTION-F)
(THINGS <PSEUDO (<> SLOT FORM-SLOT-F)>)>
<ROUTINE EAST-CONNECTION-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"The corridor widens to the east, the connection point for a Military
Sub-Module. An iris hatch at the connection point is ">
<COND (<FSET? ,IRIS-HATCH ,OPENBIT>
<TELL
"frozen open, revealing not a sub-module connector but
a small, grimy connector">)
(T
<TELL "shut tight">)>
<TELL
". Next to the hatch is a slot. There is a door northwest of here,
and doorways to the south and southwest. There's a junction in the
corridor west of you.">)>>
<ROOM SOUTH-JUNCTION
(IN ROOMS)
(DESC "South Junction")
(LDESC
"This central corridor turns northeast and northwest of here. A second
corridor begins here and leads south. There are doorways to the southwest,
southeast, and east.")
(NE TO EAST-JUNCTION)
(EAST TO STATION-CONTROL)
(SE TO COMMANDERS-OFFICE)
(SOUTH TO SOUTH-CONNECTION)
(SW TO FILE-ROOM)
(NW TO LEVEL-FIVE)
(FLAGS RLANDBIT ONBIT)>
<ROOM STATION-CONTROL
(IN ROOMS)
(DESC "Station Control")
(NE TO EAST-CONNECTION)
(SOUTH TO COMMANDERS-OFFICE)
(WEST TO SOUTH-JUNCTION)
(FLAGS RLANDBIT ONBIT)
(ACTION STATION-CONTROL-F)>
<ROUTINE STATION-CONTROL-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"This is the nerve center of the space station,
where every system can be monitored. ">
<COND (<L? ,DAY 3>
<COND (<EQUAL? ,DAY 1>
<TELL "A couple">)
(<EQUAL? ,DAY 2>
<TELL "Several">)>
<TELL " of the monitors are blinking red. ">)>
<TELL "The exits are south, northeast and west.">)>>
<OBJECT SYSTEM-MONITORS
(IN STATION-CONTROL)
(DESC "system monitor board")
(SYNONYM BOARD)
(ADJECTIVE SYSTEM MONITOR RED GREEN YELLOW BLINKING)
(FLAGS NDESCBIT READBIT)
(ACTION SYSTEM-MONITORS-F)>
<ROUTINE SYSTEM-MONITORS-F ()
<COND (<VERB? EXAMINE READ>
<PUT 0 8 <BOR <GET 0 8> 2>> ;"FIXED-FONT-ON"
<TELL
"System: Status:|
COMMUNICATION ">
<COND (<G? ,DAY 2>
<TELL "GREEN">)
(T
<TELL "RED">)>
<TELL "|
LIFE SUPPORT ">
<COND (<EQUAL? ,DAY 2>
<COND (<L? ,INTERNAL-MOVES 6500>
<TELL "YELLOW">)
(T
<TELL "RED">)>)
(T
<TELL "GREEN">)>
<TELL "|
FOOD PRODUCTION ">
<COND (<G? ,DAY 2>
<TELL "GREEN">)
(T
<TELL "RED">)>
<TELL "|
GRAVITY ">
<COND (<EQUAL? ,DAY 2>
<TELL "YELLOW">)
(T
<TELL "GREEN">)>
<TELL "|
COMPUTER GREEN|
POWER ">
<COND (<EQUAL? ,DAY 2>
<COND (<L? ,INTERNAL-MOVES 4300>
<TELL "YELLOW">)
(T
<TELL "RED">)>)
(T
<TELL "GREEN">)>
<TELL "|
PRINTING ">
<COND (<EQUAL? ,DAY 1>
<TELL "YELLOW">)
(<G? ,DAY 3>
<TELL "GREEN">)
(T
<TELL "RED">)>
<CRLF>
<PUT 0 8 <BAND <GET 0 8> -3>> ;"FIXED-FONT-OFF")>>
<ROOM COMM-CENTER
(IN ROOMS)
(DESC "Comm Center")
(NORTH TO EAST-CONNECTION)
(OUT TO EAST-CONNECTION)
(FLAGS RLANDBIT ONBIT NWELDERBIT)
(GLOBAL EQUIPMENT)
(ACTION COMM-CENTER-F)
(THINGS <PSEUDO (RED BUTTON COMM-BUTTON-F)
(MESSAGE SCREEN SCREEN-F)>)>
<ROUTINE COMM-CENTER-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"This is the Deep-Space Communication Center, which keeps the station in touch
with the Stellar Patrol Command and the rest of the Third Galactic Union.
Although regulations state that the Comm Center must be monitored around the
clock, ten chrons per day, there's no one on duty.|
Most of the equipment here is too complicated for anyone without Deep-Space
Communication Training to use. However, the red button of the wide-band
emergency beacon is well-marked. Next to the button is a large screen for
displaying incoming messages. ">
<SCREEN-F T>
<TELL " The only exit is north.">)>>
<ROUTINE COMM-BUTTON-F ()
<COND (<TOUCHING? ,PSEUDO-OBJECT>
<TELL
"The instant you touch the button, a powerful electric shock
makes you jerk back.">
<COND (<G? ,ROBOT-EVILNESS 14>
<JIGS-UP
" The shock seems to have been a bit too much for your heart.">)
(<AND <G? ,ROBOT-EVILNESS 7>
<G? <CCOUNT ,PROTAGONIST> 0>>
<ROB ,PROTAGONIST ,HERE>
<TELL
" The shock causes you to drop everything, and leaves your limbs
twitching all over.">)>
<CRLF>)>>
<ROUTINE SCREEN-F ("OPTIONAL" (DESCRIBE-SCREEN <>))
<COND (<OR <VERB? EXAMINE>
.DESCRIBE-SCREEN>
<TELL "At the moment, the screen is ">
<COND (,MESSAGE-RECEIVED
<TELL "displaying a message.">)
(T
<TELL "blank.">)>
<COND (<NOT .DESCRIBE-SCREEN>
<CRLF>)>
<RTRUE>)
(<VERB? READ>
<COND (,MESSAGE-RECEIVED
<TELL
"\"From: Forms Control Officer, S.P.S. Duffy|
To: " ,LFC " 1451-352-716|
Re: Current assignment|
Msg: Two thousand reams of " ,FORM-NAME " found in mislabelled pallet. No
additional supplies needed. Abort assignment and return to Duffy.\"" CR>)
(T
<PERFORM ,V?EXAMINE ,PSEUDO-OBJECT>
<RTRUE>)>)>>
<GLOBAL MESSAGE-RECEIVED <>>
<ROUTINE I-MESSAGE ()
<SETG MESSAGE-RECEIVED T>
<FCLEAR ,COMM-CENTER ,TOUCHBIT>
<TELL " ">
<COND (<FSET? ,SPACESUIT ,WORNBIT>
<TELL "The space suit picks up a message from">)
(T
<TELL "You hear a message over">)>
<TELL
" the station's P.A. system: \"Deep-space communication received at
Comm Center. No operator on duty. This is a recording.\"" CR>>
<ROOM FILE-ROOM
(IN ROOMS)
(DESC "File Room")
(LDESC
"This is the room where octuplet copies of forms are stored. Since it's only
a hundred square meters, this room cannot hold more than a few days' worth of
storage before being dumped to nanofilm. Mercifully, there is an exit to the
northeast.")
(NE TO SOUTH-JUNCTION)
(OUT TO SOUTH-JUNCTION)
(FLAGS RLANDBIT NWELDERBIT)
(THINGS <PSEUDO (FILES FILE FILES-F)
(<> FORM FILES-F)
(<> FORMS FILES-F)>)>
<ROUTINE FILES-F ()
<COND (<VERB? EXAMINE READ>
<TELL
"The word \"boring\" does not BEGIN to describe them." CR>)
(<VERB? CRUMPLE MUNG>
<TELL ,VIOLATION-OF-ACT>)>>
<ROOM COMMANDERS-OFFICE
(IN ROOMS)
(DESC "Commander's Office")
(NORTH TO STATION-CONTROL)
(EAST TO COMMANDERS-QUARTERS IF P-WON)
(SOUTH TO BRIEFING-ROOM IF P-WON)
(NW TO SOUTH-JUNCTION)
(FLAGS RLANDBIT ONBIT)
(GLOBAL AUTO-DOOR)
(THINGS <PSEUDO (RED BUTTON LOG-READER-BUTTON-F)>)
(ACTION COMMANDERS-OFFICE-F)>
<ROUTINE COMMANDERS-OFFICE-F (RARG)
<COND (<AND <EQUAL? .RARG ,M-ENTER>
<ULTIMATELY-IN? ,EXPLOSIVE>>
<FSET ,EXERCISE-MACHINE ,TOUCHBIT>
<MOVE ,EXERCISE-MACHINE ,COMPUTER-CONTROL>
<ROB ,EXERCISE-MACHINE ,GYM>)
(<EQUAL? .RARG ,M-LOOK>
<TELL
"This is the Station Commander's H.Q., with doors to the south and east,
and doorways to the north and northwest.">
<COND (<NOT <IN? ,LOG-READER ,HERE>>
<TELL
" There's a black scar where the " 'LOG-READER " once sat.">)>
<RTRUE>)>>
<OBJECT LOG-READER
(IN COMMANDERS-OFFICE)
(DESC "log reader")
(SYNONYM READER RECORDER MACHIN)
(ADJECTIVE LOG)
(FLAGS LIGHTBIT CONTBIT SEARCHBIT OPENBIT TRYTAKEBIT)
(ACTION LOG-READER-F)>
<ROUTINE LOG-READER-F ()
<COND (<VERB? OPEN CLOSE>
<TELL ,HUH>)
(<VERB? EXAMINE>
<TELL
"This simple device is for recording and reading log entries. It includes a
tiny red button and a microphone/speaker. ">
<COND (<AND <FSET? ,LOG-READER ,ACTIVEBIT>
<IN? ,LOG-TAPE ,LOG-READER>>
<TELL "The red button is glowing. ">)>
<TELL "At the moment, the " 'LOG-READER " is o">
<COND (<FSET? ,LOG-READER ,ACTIVEBIT>
<TELL "n">)
(T
<TELL "ff">)>
<TELL ", and there is ">
<COND (<IN? ,LOG-TAPE ,LOG-READER>
<TELL "a">)
(T
<TELL "no">)>
<TELL " log tape in it." CR>)
(<VERB? PUT>
<COND (<NOT <PRSO? ,LOG-TAPE>>
<DOESNT-FIT "reader">)
(<FSET? ,LOG-READER ,ACTIVEBIT>
<MOVE ,LOG-TAPE ,LOG-READER>
<SETG LOG-COUNTER 0>
<READ-LOG>)>)
(<AND <VERB? ON>
<NOT <FSET? ,LOG-READER ,ACTIVEBIT>>>
<QUEUE I-LOG-READER -1>
<COND (<IN? ,LOG-TAPE ,LOG-READER>
<FSET ,LOG-READER ,ACTIVEBIT>
<SETG LOG-COUNTER 0>
<READ-LOG>)
(T
<RFALSE>)>)
(<AND <VERB? LISTEN>
<G? ,LOG-READER-COUNTER 11>>
<TELL "\"Whine.\"" CR>)
(<VERB? TAKE>
<TELL ,WONT-BUDGE>)
(<VERB? SHOOT>
<DEQUEUE I-LOG-READER>
<RFALSE>)>>
<ROUTINE LOG-READER-BUTTON-F ()
<COND (<NOT <IN? ,LOG-READER ,HERE>>
<CANT-SEE ,PSEUDO-OBJECT>)
(<VERB? PUSH>
<COND (<AND <IN? ,LOG-TAPE ,LOG-READER>
<FSET? ,LOG-READER ,ACTIVEBIT>>
<COND (<EQUAL? ,LOG-COUNTER 10>
<TELL
"A mechanized voice from the " 'LOG-READER " says, \"End of Log.\"" CR>)
(T
<READ-LOG>)>)
(T
<TELL ,NOTHING-HAPPENS>)>)>>
<GLOBAL LOG-COUNTER 0>
<GLOBAL LOG-READER-COUNTER 0>
<ROUTINE READ-LOG ()
<SETG LOG-COUNTER <+ ,LOG-COUNTER 1>>
<COND (<EQUAL? ,LOG-COUNTER 1>
<TELL "A gravelly voice comes from the " 'LOG-READER ": ">)>
<TELL "\"11349.12.">
<COND (<EQUAL? ,LOG-COUNTER 1>
<TELL
"2.3800: Some kripping jokers have been pilfering the station's fuel
cells to go out on joyrides! I have hidden the fuel cells up in the Dome's "
'HOUSING ", slapped a lock on the bin, and deposited the key in my safe!
There will be no joyriding in my command!">)
(<EQUAL? ,LOG-COUNTER 2>
<TELL
"2.5100: Reproductions Officer Hausberg reports that collater
#22 is off-line for routine service. Estimates one or two days downtime.
Also, unidentified craft detected in sector. No response to hailings.
Sending Finsterwald to intercept.">)
(<EQUAL? ,LOG-COUNTER 3>
<TELL
"2.6750: Unidentified craft towed to Docking Bay #1. It is a
single-cabin vessel of unfamiliar alien origin. The only things aboard were
the remains of one of the aliens, and a featureless pyramid. I'll leave it
to the eggheads; I've got a problem of my own: a report that a used-spaceship
dealer in the village named Shady Dan is selling modified Patrol ID cards.
Liaison Officer Bumblewitz is investigating.">)
(<EQUAL? ,LOG-COUNTER 4>
<TELL
"3.1900: Professor Schmidt has back-plotted the course of the alien
vessel. There are no star systems along the course; he theorizes that it may
be of extra-galactic origin.">)
(<EQUAL? ,LOG-COUNTER 5>
<TELL
"3.5100: No cooperation from Shady Dan, so I'm putting the
village off-limits to station personnel. No more village entry forms
will be validated.">)
(<EQUAL? ,LOG-COUNTER 6>
<TELL
"3.5250: Some kripping joker snuck into my office and validated a
whole batch of village entry forms! I won't take that kind of trot aboard my
station! I'll hide the stamp under my bed until I find out who's responsible.
Also, I gave Schmidt permission to move the alien pyramid to the "
'HOLDING-TANK " in the Sci Sub-Module for further study; the " 'SKELETON " is
too brittle to move, they say. Hmmm... This " 'LOG-READER " is overheating.
I'll have to dig out the spare.">)
(<EQUAL? ,LOG-COUNTER 7>
<TELL
"3.7700: Equipment Officer Mertzhoffer informs me that there have
been several unexplainable breakdowns in the Gymnastic Equipment and the
Laundering Machinery. All very simple equipment; could it be sabotage?
If so, how? Who? Why?">)
(<EQUAL? ,LOG-COUNTER 8>
<TELL
"4.1650: Emergency communication from the S.P.S. Duffy. They are
critically low on " ,FORM-NAME ", and are sending someone over to pick up a
truckload of them. Reproductions Officer Hausberg says that the #22 collater
should be available to prepare the forms.">)
(<EQUAL? ,LOG-COUNTER 9>
<TELL
"4.1850: Hausberg reports an unexpected shutdown of web-feeder #17.
No apparent reason for the shutdown, and no warning, either. He says that one
of his personnel almost lost an arm when it shut down. We may have to halt the
entire plant to investigate. No telling how long... What the... Trot! Now the
spare " 'LOG-READER " is overheating, also!">)
(T
<TELL
"4.1900: One of the ensigns in the filing division was seriously
injured when one of the " 'WELDER "s malfunctioned. She's in Sick Bay now;
Doc says she should pull through. I've been in space for 32 years and
I've never heard of a " 'WELDER " malfun... What the krip!...">)>
<TELL "\"">
<COND (<NOT <EQUAL? ,LOG-COUNTER 10>>
<TELL CR
" A mechanized voice from the " 'LOG-READER " intones the single word
\"More,\" and the red button on the reader lights up.">)>
<CRLF>>
;"routine I-LOG-READER moved to INTERRUPTS file"
<ROOM COMMANDERS-QUARTERS
(IN ROOMS)
(DESC "Commander's Quarters")
(LDESC
"These are by far the nicest living quarters on the station, with
separate sleeping, changing, and working cubicles, and a private SanFac.
The only exit is west.")
(WEST TO COMMANDERS-OFFICE IF P-WON)
(OUT TO COMMANDERS-OFFICE IF P-WON)
(FLAGS RLANDBIT ONBIT NWELDERBIT)
(GLOBAL AUTO-DOOR BED FIXTURES CUBICLE WARDROBE DESK)
(THINGS <PSEUDO (<> DIAL DIAL-F)>)>
<ROUTINE DIAL-F ()
<COND (<FSET? ,SAFE ,OPENBIT>
<TELL "There's not much left of the dial." CR>)
(<AND <VERB? SET>
<PRSO? ,PSEUDO-OBJECT>>
<COND (<NOT ,PRSI>
<TELL ,NEXT-TIME>)
(<NOT <PRSI? ,INTNUM>>
<TELL ,HUH>)
(T
<PERFORM ,V?SET ,INTNUM>
<RTRUE>)>)
(<VERB? EXAMINE>
<TELL "The dial is set to " N ,DIAL-SETTING ,PERIOD-CR>)>>
<GLOBAL DIAL-SETTING 4473>
<OBJECT LOG-TAPE
(IN COMMANDERS-QUARTERS)
(DESC "log tape")
(FDESC
"Sitting on the Commander's desk is an ordinary-looking log tape. There's
a notation printed on it.")
(SYNONYM TAPE LOG NOTATION)
(ADJECTIVE LOG)
(FLAGS TAKEBIT READBIT)
(TEXT "\"Commander's Log -- 11349.12.2 through 11349.12.4\"")>
<OBJECT SAFE
(IN COMMANDERS-QUARTERS)
(DESC "safe")
(FDESC ;"so it'll get printed before other DESCs"
"A sturdy safe is welded to the deck next to the desk.")
(LDESC
"The safe has been blown open! The area around the safe is blackened, and a
burnt odor hangs in the air.")
(SYNONYM SAFE LOCK)
(ADJECTIVE STURDY)
(FLAGS CONTBIT SEARCHBIT LOCKEDBIT)
(ACTION SAFE-F)>
<ROUTINE SAFE-F ()
<COND (<VERB? EXAMINE>
<TELL
"It's a top-of-the-line HyperSecurity Safe, featuring a dial with
8000 settings. There are probably between twelve and twenty numbers
in the combination">
<COND (<IN? ,DRILLED-HOLE ,HERE>
<TELL ". There is a hole in the safe">
<DESCRIBE-BIT-SIZE ,HOLE-SIZE>)>
<TELL ,PERIOD-CR>)
(<VERB? DRILL>
<MAKE-HOLE-WITH-DRILL ,SAFE>)
(<VERB? UNLOCK PICK>
<TELL
"The galaxy's craftiest safecrackers would be stumped by this baby." CR>)>>
<ROUTINE DESCRIBE-BIT-SIZE (BIT-SIZE)
<TELL " approximately the diameter of a ">
<COND (<EQUAL? .BIT-SIZE ,SMALL-BIT>
<TELL "toothpick">)
(<EQUAL? .BIT-SIZE ,MEDIUM-BIT>
<TELL "pencil">)
(T
<TELL "cigar">)>>
<GLOBAL DRILL-DEAD <>>
<GLOBAL HOLE-SIZE <>>
<GLOBAL DRILL-FOOTNOTE <>>
<GLOBAL SAFE-HOLE-SCORE <>>
<OBJECT DRILLED-HOLE
(DESC "hole")
(SYNONYM HOLE)
(FLAGS NDESCBIT CONTBIT OPENBIT SEARCHBIT)
(ACTION DRILLED-HOLE-F)>
<ROUTINE DRILLED-HOLE-F ("AUX" OBJ)
<SET OBJ <COND (<EQUAL? ,HERE ,COMMANDERS-QUARTERS>
,SAFE)
(<EQUAL? ,HERE ,LOAN-SHARK>
,STRONG-BOX)
(T
,HOUSING)>>
<COND (<AND <VERB? PUT>
<PRSI? ,DRILLED-HOLE>>
<COND (<OR <NOT <PRSO? ,EXPLOSIVE>>
<EQUAL? ,HOLE-SIZE ,SMALL-BIT>>
<DOESNT-FIT "hole">)
(<EQUAL? ,HERE ,DOME>
<TELL
"As the explosive touches the warm bin, it " ,SUBLIMES-INTO-FREZONE>
<DEQUEUE I-EXPLOSIVE-MELT>
<REMOVE-CAREFULLY ,EXPLOSIVE>
<CRLF>)
(<AND <NOT ,SAFE-HOLE-SCORE>
<EQUAL? ,HERE ,COMMANDERS-QUARTERS>>
<SETG ROBOT-EVILNESS <+ ,ROBOT-EVILNESS 1>>
<SETG SCORE <+ ,SCORE 3>>
<SETG SAFE-HOLE-SCORE T>
<RFALSE>)>)
(<VERB? DRILL>
<PERFORM, PRSA .OBJ>
<RTRUE>)
(<VERB? SHOOT>
<PERFORM, PRSA .OBJ ,ZAPGUN>
<RTRUE>)
(<VERB? LOOK-INSIDE>
<TELL ,ONLY-BLACKNESS>)>>
<ROUTINE MAKE-HOLE-WITH-DRILL (OBJ)
<COND (,DRILL-DEAD
<PERFORM ,V?ON ,DRILL>
<RTRUE>)
(<AND ,HOLE-SIZE