-
Notifications
You must be signed in to change notification settings - Fork 18
/
ship.zil
1409 lines (1320 loc) · 43.8 KB
/
ship.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
"SHIP for
STATIONFALL
(c) Copyright 1987 Infocom, Inc. All Rights Reserved."
<ROOM DECK-TWELVE
(IN ROOMS)
(DESC "Deck Twelve")
(LDESC
"You are in the heart of the administrative level of the ship, the largest
level of the S.P.S. Duffy or any other Stellar Patrol ship for that matter.
The corridor continues starboard and a room lies aft. Beyond the door to
port lies the bulk of the Duffy. Next to the door is a slot.")
(EAST TO CARGO-BAY-ENTRANCE)
(SOUTH TO FORM-STORAGE-ROOM)
(WEST PER FAKE-DOOR-ENTER-F)
(FLAGS FLOYDBIT RLANDBIT ONBIT)
(THINGS <PSEUDO (<> DOOR FAKE-DOOR-F)
(<> SLOT FORM-SLOT-F)>)>
<ROUTINE FAKE-DOOR-ENTER-F ()
;<THIS-IS-IT ,PSEUDO-OBJECT> ;"doesn't work"
<TELL "The door is closed." CR>
<RFALSE>>
<ROUTINE FAKE-DOOR-F ()
<COND (<VERB? OPEN>
<RECORDING
"You must insert a validated Assignment Completion Form in the slot">)
(<VERB? EXAMINE>
<TELL "There's a slot next to the closed door." CR>)
(<VERB? ENTER>
<DO-WALK ,P?WEST>)>>
<GLOBAL ASSIGNMENT-FORM-VALIDATED <>>
<OBJECT ASSIGNMENT-COMPLETION-FORM
(IN PROTAGONIST)
(DESC "Assignment Completion Form QX-17-T")
(SYNONYM FORM FORMS QX-17-T)
(ADJECTIVE ASSIGNMENT COMPLETION FORM)
(FLAGS TAKEBIT READBIT VOWELBIT)
(SIZE 1)
(ACTION FORM-F)>
<OBJECT ROBOT-USE-AUTHORIZATION-FORM
(IN PROTAGONIST)
(DESC "Robot Use Authorization Form JZ-59-G")
(SYNONYM FORM FORMS JZ-59-G)
(ADJECTIVE ROBOT USE AUTHORIZATION FORM)
(FLAGS TAKEBIT READBIT)
(SIZE 1)
(ACTION FORM-F)>
<OBJECT CLASS-THREE-SPACECRAFT-ACTIVATION-FORM
(IN PROTAGONIST)
(DESC "Class Three Spacecraft Activation Form HB-56-V")
(SYNONYM FORM FORMS HB-56-V)
(ADJECTIVE CLASS THREE SPACECRAFT ACTIVA FORM)
(FLAGS TAKEBIT READBIT)
(SIZE 1)
(ACTION FORM-F)>
<ROUTINE FORM-F ()
<COND (<VERB? READ EXAMINE>
<TELL "[This form can be found in your STATIONFALL package.]">
<COND (<PRSO? ,ASSIGNMENT-COMPLETION-FORM>
<TELL " You notice that it has ">
<COND (<NOT ,ASSIGNMENT-FORM-VALIDATED>
<TELL "not ">)>
<TELL "been validated.">)>
<CRLF>)
(<VERB? VALIDATE>
<COND (,ASSIGNMENT-FORM-VALIDATED
<TELL ,SENILITY-STRIKES>)
(T
<SETG ASSIGNMENT-FORM-VALIDATED T>
<TELL "Done." CR>)>)
(<VERB? CRUMPLE MUNG>
<TELL ,VIOLATION-OF-ACT>)>>
<OBJECT CHRONOMETER
(IN PROTAGONIST)
(DESC "chronometer")
(SYNONYM CHRONOMETER WRISTWATCH WATCH)
(ADJECTIVE WRIST MY)
(SIZE 8)
(FLAGS TAKEBIT WEARBIT WORNBIT)
(ACTION CHRONOMETER-F)>
<ROUTINE CHRONOMETER-F ()
<COND (<VERB? EXAMINE READ>
<COND (<G? ,DAY 2>
<TELL
"You glance at your " 'CHRONOMETER ", and realize with annoyance that it has
stopped. You can't recall doing anything that might have broken it." CR>)
(T
<TELL
"It is a standard wrist " 'CHRONOMETER " with a digital display. ">
<V-TIME T>
<TELL
" The back is engraved with the message
\"Good luck in the Patrol! Love, Mom and Dad.\"" CR>)>)>>
<OBJECT ID-CARD
(IN PATROL-UNIFORM)
(DESC "ID card")
(SYNONYM CARD CARDS)
(ADJECTIVE MY PATROL ID IDENTIFICATION)
(FLAGS VOWELBIT TAKEBIT TRYTAKEBIT READBIT)
(SIZE 2)
(TEXT
"\"STELLAR PATROL|
Paperwork Task Force|
ID Number: 1451-352-716\"")>
<GLOBAL SCRAMBLED-FOOTNOTE <>>
<GLOBAL ID-SCRAMBLED <>>
<OBJECT PATROL-UNIFORM
(IN PROTAGONIST)
(DESC "Patrol uniform")
(SYNONYM UNIFORM POCKET)
(ADJECTIVE PATROL MY)
(FLAGS TAKEBIT WORNBIT WEARBIT CONTBIT SEARCHBIT OPENBIT)
(CAPACITY 10)
(SIZE 8)
(ACTION PATROL-UNIFORM-F)>
<GLOBAL SUIT-PRESSED <>>
<ROUTINE PATROL-UNIFORM-F ()
<COND (<VERB? EXAMINE>
<TELL
"It is a standard-issue one-pocket Stellar " 'PATROL-UNIFORM ", a miracle
of modern technology. It will keep its owner warm in cold climates and cool
in warm locales. It provides protection against mild radiation, repels all
insects, absorbs sweat, promotes healthy skin tone, and on top of everything
else, it is super-comfy">
<COND (,SUIT-PRESSED
<TELL ". The uniform has been recently pressed">)>
<TELL ,PERIOD-CR>)
(<VERB? OPEN CLOSE>
<TELL
"There's no way to open or close the pocket of the " D ,PRSO ,PERIOD-CR>)>>
<GLOBAL BLATHER-PROB 0>
<ROUTINE I-BLATHER ()
<COND (<EQUAL? ,HERE ,SPACETRUCK>
<DEQUEUE I-BLATHER>)
(<PROB ,BLATHER-PROB>
<DEQUEUE I-BLATHER>
<TELL
" Ensign Twelfth Class Blather walks by, lugging his toilet scrubbing
supplies. He spots you, whimpers, and slouches away (Footnote 2)." CR>)
(T
<SETG BLATHER-PROB <+ ,BLATHER-PROB 10>>)>>
<ROOM FORM-STORAGE-ROOM
(IN ROOMS)
(DESC "Forms Storage Room")
(LDESC
"This is the largest space in the ship, three decks tall and with the
floor area of seven Rigellian buzzball fields. The only exit is fore.")
(NORTH TO DECK-TWELVE)
(FLAGS RLANDBIT ONBIT FLOYDBIT)
(THINGS <PSEUDO (<> FORM BOXED-FORMS-F)
(<> FORMS BOXED-FORMS-F)>)>
<ROUTINE BOXED-FORMS-F ()
<COND (<OR <VERB? EXAMINE>
<TOUCHING? ,PSEUDO-OBJECT>>
<TELL "The forms are sealed inside the boxes." CR>)
(<VERB? CRUMPLE MUNG>
<TELL ,VIOLATION-OF-ACT>)>>
<OBJECT PALLETS
(IN FORM-STORAGE-ROOM)
(DESC "pallets of boxes")
(FDESC
"The room is filled to the ceiling with row upon row of pallets
filled with boxes. Each box has some writing stamped on the side.")
(SYNONYM BOX BOXES PALLET)
(FLAGS NARTICLEBIT READBIT)
(ACTION PALLETS-F)>
<ROUTINE PALLETS-F ("AUX" CNT)
<COND (<VERB? READ>
<COND (<EQUAL? ,HERE ,FORM-STORAGE-ROOM>
<TELL
"There are numerous boxes; some of the nearer ones read: \"Form Pallet
Disbursal Form,\" \"Loss of Form Pallet Label Report Form,\" and
\"Loss of Form Pallet Label Report Form Release Form.\"" CR>)
(T
<TELL "\"" ,FORM-NAME ".\"" CR>)>)
(<VERB? OPEN LOOK-INSIDE SEARCH>
<TELL "Forms">
<SET CNT 0>
<REPEAT ()
<COND (<EQUAL? .CNT 50>
<RETURN>)>
<TELL " and forms">
<SET CNT <+ .CNT 1>>>
<TELL ". Horrified, you reseal the box." CR>)
(<VERB? CLOSE>
<TELL "They already are." CR>)
(<VERB? TAKE>
<TELL "You'll need a forklift." CR>)
(<VERB? CLIMB-ON STAND-ON MUNG SHOOT>
<TELL ,VIOLATION-OF-ACT>)
(<VERB? COUNT>
<COND (<EQUAL? ,HERE ,FORM-STORAGE-ROOM>
<TELL "Countless." CR>)
(<NOUN-USED ,W?PALLET ,PALLETS>
<TELL "24." CR>)
(<NOUN-USED ,W?BOXES ,PALLETS>
<SETG C-ELAPSED 30>
<TELL "1920." CR>)>)>>
<ROOM CARGO-BAY-ENTRANCE
(IN ROOMS)
(DESC "Cargo Bay Entrance")
(LDESC
"The deck twelve corridor ends here at the entrance to the cargo bay, to
starboard. A smaller entrance leads fore.")
(EAST TO CARGO-BAY)
(WEST TO DECK-TWELVE)
(NORTH TO ROBOT-POOL)
(FLAGS RLANDBIT ONBIT FLOYDBIT)>
<ROOM ROBOT-POOL
(IN ROOMS)
(DESC "Robot Pool")
(SOUTH TO CARGO-BAY-ENTRANCE)
(OUT TO CARGO-BAY-ENTRANCE)
(FLAGS RLANDBIT ONBIT FLOYDBIT)
(GLOBAL KEYPAD EQUIPMENT)
(THINGS <PSEUDO (<> SLOT FORM-SLOT-F)
(FIRST BIN BIN-F)
(SECOND BIN BIN-F)
(THIRD BIN BIN-F)>)
(ACTION ROBOT-POOL-F)>
<ROUTINE ROBOT-POOL-F (RARG)
<COND (<EQUAL? .RARG ,M-ENTER>
<QUEUE I-FLOYD <+ ,C-ELAPSED 2>>)
(<EQUAL? .RARG ,M-LOOK>
<TELL
"This is where a " ,LFC " would come to obtain a robot for use on an
important assignment. Also for a trivial assignment like yours. "
,ROBOT-POOL-EQUIPMENT-DESC " You can exit aft.">)
(<AND <EQUAL? .RARG ,M-EXIT>
<NOT <EQUAL? ,ROBOT-PICKED ,FLOYD>>>
<DEQUEUE I-FLOYD>)>>
<ROUTINE BIN-F ()
<COND (<OR <AND <EQUAL? <GET ,P-ADJW 0> <>>
<PRSO? ,PSEUDO-OBJECT>>
<AND <EQUAL? <GET ,P-ADJW 1> <>>
<PRSI? ,PSEUDO-OBJECT>>>
<TELL ,REFER-TO-BIN>)
(<VERB? LOOK-INSIDE>
<COND (<AND <ADJ-USED ,A?FIRST ,PSEUDO-OBJECT>
<NOT <EQUAL? ,ROBOT-PICKED ,REX>>>
<TELL <GETP ,REX ,P?FDESC> CR>)
(<AND <ADJ-USED ,A?SECOND ,PSEUDO-OBJECT>
<NOT <EQUAL? ,ROBOT-PICKED ,HELEN>>>
<TELL <GETP ,HELEN ,P?FDESC> CR>)
(<AND <ADJ-USED ,A?THIRD ,PSEUDO-OBJECT>
<NOT <EQUAL? ,ROBOT-PICKED ,FLOYD>>>
<PERFORM ,V?EXAMINE ,FLOYD>
<RTRUE>)
(T
<TELL "The bin is empty." CR>)>)
(<VERB? ENTER WALK-TO PUT>
<TELL "The bin is only for robots." CR>)>>
<OBJECT FLOYD
(IN ROBOT-POOL)
(DESC "Floyd")
(DESCFCN FLOYD-F)
(SYNONYM FLOYD ROBOT THREE COMPAR)
(ADJECTIVE MULTIP PURPOS SHORT ROBOT NUMBER THIRD)
(FLAGS CONTBIT SEARCHBIT OPENBIT ACTORBIT NARTICLEBIT ACTIVEBIT)
(CAPACITY 5)
(PLATO-ASK-ABOUT "He's an amusing and friendly little fellow.")
(FLOYD-ASK-ABOUT "That's me!")
(ACTION FLOYD-F)>
<ROUTINE FLOYD-F ("OPTIONAL" (OARG <>) "AUX" X N TXT)
<COND (.OARG
<COND (<EQUAL? .OARG ,M-OBJDESC?>
<RTRUE>)>
<TELL " ">
<DESCRIBE-FLOYD>)
(<EQUAL? ,FLOYD ,WINNER>
<SETG FLOYD-SPOKE T>
<COND (<AND ,ROBOT-PICKED
<NOT <EQUAL? ,ROBOT-PICKED ,FLOYD>>>
<SETG WINNER ,PROTAGONIST>
<PERFORM ,V?COMFORT ,FLOYD>
<STOP>)
(,FLOYD-ANGUISHED
<TELL ,FLOYD-SNIFFS>
<STOP>)
(<AND <VERB? TELL-ABOUT>
<PRSO? ,ME>>
<SET TXT <GETP ,PRSI ,P?FLOYD-ASK-ABOUT>>
<COND (<G? ,ROBOT-EVILNESS 12>
<TELL "\"Oh, quit jabbering already.\"" CR>)
(<OR <NOT .TXT>
<AND <PRSI? ,OLIVER>
<NOT <FSET? ,OLIVER ,TOUCHBIT>>>>
<TELL "Floyd shrugs. \"Beats me.">
<COND (<IN? ,PLATO ,HERE>
<TELL
" Ask Plato. He knows everything!">)>
<TELL "\"" CR>)
(T
<TELL "\"" .TXT "\"" CR>)>)
(,STUNNED
<COND (<OR <VERB? HELP>
<AND <VERB? SAVE-SOMETHING>
<PRSO? ,ME>>
<AND <VERB? OFF KILL>
<PRSO? ,PLATO>>
<AND <VERB? TAKE>
<PRSO? ,STUN-GUN>>>
<SETG FLOYD-TOLD T>
<TELL
"Floyd waves his hands helplessly. \"Yes... I mean no... I mean oh no oh help
me please. Floyd in quandry...\"" CR>)
(T
<TELL
"Floyd just looks at you with confusion and panic in his eyes." CR>
<STOP>)>)
(<EQUAL? ,HERE ,FACTORY>
<COND (,FLOYD-SHOT
<TELL "Floyd is hurt and doesn't respond." CR>)
(T
<TELL "\"Shut up!\" orders Floyd." CR>)>)
(<AND <VERB? LAUNCH>
<PRSO? ,SPACETRUCK-OBJECT>>
<SETG AWAITING-REPLY 2>
<V-YES>
<SETG AWAITING-REPLY <>>
<RTRUE>)
(<AND <VERB? TAKE>
<PRSO? ,LEASH>
<NOT <FSET? ,HERE ,WEIGHTLESSBIT>>>
<FLOYD-TAKE-LEASH>)
(<AND <VERB? TAKE>
<PRSO? ,STAR>
<FSET? ,STAR ,TRYTAKEBIT>>
<TELL "\"Huh? Floyd shorter even than you!\"" CR>)
(<AND <VERB? YES>
,AWAITING-REPLY>
<V-YES>)
(<AND <VERB? NO>
,AWAITING-REPLY>
<V-NO>)
(<AND <VERB? ENTER CLIMB-ON>
<PRSO? ,PILOT-SEAT ,COPILOT-SEAT>>
<COND (<IN? ,FLOYD ,PRSO>
<TELL "\"Where is Floyd now, huh?\"" CR>)
(T
<TELL
"Floyd looks suspicious. \"You first.\"" CR>)>)
(<AND <VERB? TAKE>
<IN? ,PRSO ,HEATING-CHAMBER>>
<MOVE ,PRSO ,HERE>
<TELL
"\"Okay!\" Floyd reaches into the " 'HEATING-CHAMBER " and grabs" T ,PRSO
". \"Yikes, it's hot!\" He drops it to the deck, where it quickly cools." CR>)
(<AND <VERB? OPEN UNLOCK MUNG>
<PRSO? ,SAFE ,STRONG-BOX>>
<TELL "\"Floyd's a robot, not a locksmith!\"" CR>)
(<AND <VERB? OPEN UNLOCK>
<PRSO? ,SECURITY-DOOR>>
<TELL "\"Put your ID in the ID reader, dumbo!\"" CR>)
(<AND <VERB? OFF KILL MUNG>
<PRSO? ,WELDER>>
<TELL
"\"Sure! Floyd not scared!\" He walks bravely up to the welder, which spits
some electric fire in his direction. From his new position (quivering behind
your legs) Floyd says, \"Floyd changed his mind, okay?\"" CR>)
(<AND <VERB? ENTER>
<PRSO? ,EXERCISE-MACHINE>>
<TELL
"\"Floyd doesn't need exercise! Not a gram of flab on Floyd!\" He pokes you
in the stomach and grins. \"Can't say the same about you, though!\"" CR>)
(<AND <VERB? REACH-IN>
<PRSO? ,DISPENSER ,PSEUDO-OBJECT>
<EQUAL? ,HERE ,PX>>
<TELL
"Floyd happily reaches into the dispenser hole, and then withdraws his hand,
looking glum. \"Nope, not even a ball.\"" CR>)
(<AND <VERB? WEAR>
<FSET? ,PRSO ,WEARBIT>>
<TELL
"\"Too big for Floyd! Also, it would clash with Floyd's
boron-titanium alloy finish!\"" CR>)
(<AND <VERB? GIVE>
<PRSI? ,ME>>
<COND (<IN? ,PRSO ,FLOYD>
<MOVE ,PRSO ,PROTAGONIST>
<TELL
"\"Okay,\" says Floyd, handing you the " D, PRSO ", \"but only
because you're Floyd's best friend.\"" CR>)
(T
<TELL ,FLOYD-NOT-HAVE>)>)
(<AND <VERB? SGIVE>
<PRSO? ,ME>>
<PERFORM ,V?GIVE ,PRSI ,ME>
<RTRUE>)
(<VERB? WALK>
<TELL
"Floyd looks slightly embarrassed. \"You know Floyd and his sense
of direction.\" Then he looks up at you with wide, trusting eyes.
\"Tell Floyd a story?\"" CR>)
(<AND <VERB? FOLLOW>
<PRSO? ,ME>>
<TELL "\"Okay!\"" CR>)
(<VERB? HELLO>
<COND (<G? ,ROBOT-EVILNESS 13>
<TELL
"\"Enough with the stupid 'FLOYD, HELLO' all the time, okay?\"" CR>)
(T
<TELL
"\"Hi!\" Floyd grins and bounces up and down." CR>)>)
(<VERB? DROP>
<COND (<IN? ,PRSO ,FLOYD>
<COND (<PROB 50>
<MOVE ,PRSO ,HERE>
<TELL
"Floyd shrugs and drops the " D ,PRSO ,PERIOD-CR>)
(T
<TELL
"Floyd clutches the " D ,PRSO " even more tightly.
\"Floyd won't,\" he says defiantly." CR>)>)
(T
<TELL ,FLOYD-NOT-HAVE>)>)
(T
<TELL
"Floyd whines, \"Enough talking! Let's play Hider-and-Seeker.\"" CR>
<STOP>)>)
(<AND <NOT <FSET? ,FLOYD ,TOUCHBIT>>
<NOUN-USED ,W?FLOYD ,FLOYD>>
<TELL "You don't see anyone by that name here." CR>
<RFATAL>)
(<AND <NOT <EQUAL? ,ROBOT-PICKED ,FLOYD>>
<TOUCHING? ,FLOYD>>
<CANT-REACH ,FLOYD>)
(<AND <VERB? COMFORT>
,ROBOT-PICKED
<NOT <EQUAL? ,ROBOT-PICKED ,FLOYD>>>
<TELL "Floyd gives you a hurt look and turns away." CR>)
(<AND ,FLOYD-ANGUISHED
<OR <TOUCHING? ,FLOYD>
<VERB? COMFORT>>>
<TELL ,FLOYD-SNIFFS>)
(<AND <PROB <- <* ,ROBOT-EVILNESS 10> 70>>
<TOUCHING? ,FLOYD>
<NOT <VERB? OFF KICK SHAKE>>
<FSET? ,FLOYD ,ACTIVEBIT>>
<COND (<NOT <EQUAL? ,HERE ,FACTORY>>
<TELL
"\"Hey, will you just leave Floyd alone!\" He shoves you away." CR>)
(,FLOYD-SHOT
<TELL "Before you can..." CR>
<I-LAUNCH>)
(T
<BACK-OFF "Floyd, he">)>)
(<VERB? EXAMINE>
<DESCRIBE-FLOYD T>
<COND (<FIRST? ,FLOYD>
<TELL " ">
<V-LOOK-INSIDE>)
(T
<CRLF>)>)
(<AND <VERB? PUT>
<PRSI? ,FLOYD>>
<COND (<FSET? ,FLOYD ,ACTIVEBIT>
<TELL
"\"Hey, Floyd's a robot, not a garbage pail!\" Floyd giggles
uncontrollably at his own joke." CR>)
(<NOUN-USED ,W?COMPAR ,FLOYD>
<TELL "There's no room." CR>)
(T
<TELL ,HUH>)>)
(<AND <VERB? KILL>
<PRSO? ,FLOYD>
,FLOYD-SHOT>
<PERFORM ,V?SHOOT ,FLOYD ,ZAPGUN>
<RTRUE>)
(<VERB? SHOOT>
<COND (,FLOYD-SHOT
<SETG ZAPGUN-SHOTS <+ ,ZAPGUN-SHOTS 1>>
<TELL
"Floyd is already fatally wounded, so that would accomplish nothing,
except perhaps fulfilling some sadistic impulse on your part." CR>)
(<EQUAL? ,HERE ,FACTORY>
<ROB ,FLOYD ,HERE>
<DEQUEUE I-FACTORY>
<FSET ,STUN-GUN ,TAKEBIT>
<FCLEAR ,FLOYD ,ACTIVEBIT>
<SETG FLOYD-SHOT T>
<TELL
"The bolt hits Floyd squarely in the chest. He is blown backwards, against
the pedestal, and slumps to the deck." CR>)
(T
<SETG ZAPGUN-SHOTS <+ ,ZAPGUN-SHOTS 1>>
<TELL
"[The author of this story is totally shocked, and won't even dignify such an
input with a response.]" CR>)>)
(<VERB? PICK>
<PICK-ROBOT>)
(<VERB? CLOSE>
<TELL ,HUH>)
(<VERB? LOOK-INSIDE REACH-IN>
<PERFORM ,V?OPEN ,FLOYD>
<RTRUE>)
(<FSET? ,FLOYD ,ACTIVEBIT>
<SETG FLOYD-SPOKE T>
<COND (<VERB? ON>
<TELL "He's already been activated." CR>)
(<VERB? OFF>
<COND (<G? ,PLATO-ATTACK-COUNTER 0>
<TELL
"Floyd jerks away as you touch his on-off switch. \"Hey, you know
how much Floyd hates that! And after Floyd just saved your
life, you kripping ingrate.\"" CR>)
(T
<FCLEAR ,FLOYD ,ACTIVEBIT>
<FCLEAR ,FLOYD ,ACTORBIT>
<COND (<EQUAL? ,SPACETRUCK-COUNTER 0>
<DEQUEUE I-FLOYD>)>
<TELL
"Floyd, shocked by this betrayal from his old friend, whimpers and keels over">
<COND (<FIRST? ,FLOYD>
<ROB ,FLOYD ,HERE>
<TELL ", dropping what he was carrying">)>
<TELL ,PERIOD-CR>)>)
(<EQUAL? ,HERE ,FACTORY>
<RFALSE>)
(<VERB? KISS>
<TELL "You receive a painful electric shock." CR>)
(<VERB? SCOLD>
<TELL
"Floyd looks defensive. \"What did Floyd do wrong?\"" CR>)
(<VERB? PLAY-WITH>
<COND (,FLOYD-ANGUISHED
<PERFORM ,V?TOUCH ,FLOYD>
<RTRUE>)
(<UNTOUCHABLE? ,FLOYD>
<CANT-REACH ,FLOYD>
<RTRUE>)>
<SETG C-ELAPSED 30>
<QUEUE I-FLOYD 1>
<TELL
"You play with Floyd for several centichrons until you">
<COND (<PROB <- <* ,ROBOT-EVILNESS 15> 135>>
<TELL
" win a game. Floyd gets angry, accuses you of cheating, and kicks
you painfully in the shin." CR>)
(T
<TELL
"'re completely winded. Floyd pokes at you gleefully.
\"C'mon! Let's play some more!\"" CR>)>)
(<VERB? LISTEN>
<TELL "Floyd is babbling about this and that." CR>)
(<AND <VERB? TAKE>
<PRSO? ,FLOYD>>
<COND (<FSET? ,HERE ,WEIGHTLESSBIT>
<TELL
"Sans gravity, you easily pick up Floyd. \"Oh, boy! Zero-Gee Polo,\" he
yells, wriggling away and bounding off several walls." CR>)
(<FSET? ,FLOYD ,TOUCHBIT>
<SETG FLOYD-TRYTAKEN T>
<TELL
"You manage to lift Floyd a few centimeters, but he's too heavy and you
drop him suddenly. Floyd gives a surprised squeal and moves a
respectable distance away." CR>)>)
(<VERB? KILL MUNG>
<TELL
"Floyd starts dashing around the room. \"Oh boy oh boy oh boy! I haven't played
Chase and Tag for years! You be It! Nah, nah!\""CR>)
(<VERB? KICK SHAKE>
<COND (<G? ,ROBOT-EVILNESS 13>
<TELL
"\"What the krip do you think you're doing? How you'd like it if Floyd
treated you that way, you stupid trot-brain.\"" CR>)
(T
<TELL
"\"Why you do that?\" Floyd whines. \"I think a wire now shaken loose.\"
He goes off into a corner and sulks." CR>)>)
(<VERB? SEARCH CLEAN OPEN TICKLE>
<TELL
"Floyd giggles and pushes you away. \"You're tickling Floyd!\" He clutches at
his side panels, laughing hysterically. Oil drops stream from his eyes." CR>)
(<AND <VERB? GIVE PUT>
<PRSI? ,FLOYD>>
<COND (<PRSO? ,ORANGE-GOO ,GRAY-GOO
,TAFFY ,SOUP ,NECTAR>
<TELL
"Floyd looks at the goo. \"Yech! Got any Number Seven Heavy Grease?\"" CR>)
(<PRSO? ,LEASH>
<FLOYD-TAKE-LEASH>)
(<PRSO? ,OSTRICH-NIP>
<TELL
"\"Phew!\" says Floyd, holding his nose and handing it back." CR>)
(<OR <G? <CCOUNT ,FLOYD> 3>
<PRSO? ,OSTRICH-NIP ,SPACESUIT>
<PRSO? ,DETONATOR ,TIMER ,EXPLOSIVE>
<FSET? ,PRSO ,CONTBIT>
<PROB 35>>
<MOVE ,PRSO ,HERE>
<TELL
"Floyd examines the " D, PRSO ", shrugs, and drops it." CR>)
(T
<MOVE ,PRSO ,FLOYD>
<TELL
"\"Neat!\" exclaims Floyd. He thanks you profusely." CR>)>)
(<AND <VERB? SHOW>
<EQUAL? ,FLOYD ,PRSI>>
<SETG AWAITING-REPLY 3>
<QUEUE I-REPLY <+ ,C-ELAPSED 2>>
<TELL
"Floyd looks over" T ,PRSO ". \"Can you play any
games with it?\" he asks." CR>)
(<VERB? TOUCH HUG>
<TELL "Floyd gives a contented sigh." CR>)
(<VERB? SMELL>
<TELL
"Floyd smells faintly of ozone and light machine oil." CR>)>)
;"following clauses are for when Floyd is off"
(<AND <VERB? ON OFF>
,FLOYD-SHOT>
<TELL
"The switch crumbles in your hand; it looks like Floyd's headed for that
big Robot Pool in the sky..." CR>)
(<VERB? ON>
<QUEUE I-FLOYD -1>
<SETG FLOYD-SPOKE T>
<FSET ,FLOYD ,ACTORBIT>
<FSET ,FLOYD ,ACTIVEBIT>
<FSET ,FLOYD ,TOUCHBIT>
<TELL "Floyd jumps to his feet" ,HOPPING-MAD CR>)
(<VERB? OFF>
<TELL "Floyd isn't on." CR>)
(<AND <VERB? TELL>
<NOT ,FLOYD-SHOT>>
<TELL
"Floyd isn't that great a listener even when he's on..." CR>
<STOP>)
(<VERB? SEARCH OPEN>
<TELL
"You search the robot's compartments and discover a crayon, a paddle ball set,
and finally, a photo of yourself. On the back, in crayon, in Floyd's childish
scrawl, is the inscription, \"Floyds frend.\" Touched, you return everything
to the compartments where you found them." CR>)>>
<ROUTINE DESCRIBE-FLOYD ("OPTIONAL" (EXAMINING <>))
<COND (<NOT <FSET? ,FLOYD ,TOUCHBIT>>
<TELL
,YOU-CANT "see the robot in the third bin very well, because he's crouched
in the corner. He's a short robot, and he seems to be playing marbles.">)
(<AND <EQUAL? ,HERE ,ROBOT-POOL>
<NOT ,ROBOT-PICKED>>
<TELL
"With unconcealed excitement, Floyd is hopping around in bin number three.">)
(<AND <EQUAL? ,HERE ,ROBOT-POOL>
<NOT <EQUAL? ,ROBOT-PICKED ,FLOYD>>>
<TELL "Floyd sits dejectedly in bin three.">)
(<AND <IN? ,PLATO ,HERE>
<NOT .EXAMINING>>
<TELL "Plato and Floyd are both here.">
<COND (<NOT <FSET? ,FLOYD ,ACTIVEBIT>>
<TELL " ">
<TELL ,FLOYD-OFF-DESC>)>
<RTRUE>)
(<EQUAL? ,HERE ,FACTORY>
<TELL "Floyd is ">
<COND (,FLOYD-SHOT
<TELL "ly">)
(T
<TELL "stand">)>
<TELL "ing between you and the pyramid, ">
<COND (,FLOYD-SHOT
<TELL "seriously damaged by zapgun fire.">)
(T
<TELL
"his face so contorted by hate as to be almost unrecognizable. You also wonder
where he picked up that black eye patch.">)>)
(<NOT <FSET? ,FLOYD ,ACTIVEBIT>>
<TELL ,FLOYD-OFF-DESC>)
(,FLOYD-ANGUISHED
<TELL "Floyd is lying on the floor, sobbing.">)
(.EXAMINING
<TELL
"Floyd is a multi-purpose robot with
slightly-crossed eyes and a lopsided grin.">)
(T
<TELL "Floyd is here, also looking around the room.">)>>
<ROUTINE FLOYD-TAKE-LEASH ()
<COND (,HANGING-IN-AIR
<TELL "\"Floyd can't until you let go!\"" CR>)
(T
<TELL
"Floyd grabs the leash and gets pulled up into the air. \"Wheee!\" Then his
grip slips and he clatters to the deck. \"Oops! More dents!\"" CR>)>>
<GLOBAL FLOYD-SHOT <>>
<GLOBAL FLOYD-TRYTAKEN <>>
<GLOBAL FLOYD-SPOKE <>> ;"so Floyd doesn't do two things on the same turn"
<GLOBAL FLOYD-FOLLOW <>> ;"checks if Floyd was in room where you just were"
<GLOBAL FLOYD-ANGUISHED <>> ;"true if Plato just died"
;"routine I-FLOYD moved to INTERRUPTS file"
<GLOBAL GOOD-FLOYDISMS
<LTABLE 0
"rubs his head affectionately against your shoulder"
"notices a mouse scurrying by and tries to hide behind you"
"reminisces about the excitement of your adventure on Resida"
"hums the theme song from a popular Saturday morning hyperwave cartoon"
"plays a quick game of paddleball, almost breaking his record
of four hits">>
<GLOBAL NEUTRAL-FLOYDISMS
<LTABLE 0
"paces impatiently"
"absent-mindedly recites the first six hundred digits of pi"
"recalls the time he bruised his knee"
"tells you how much it hurts to repair dents"
"cranes his neck to see what you are doing"
"examines himself for signs of rust"
"absent-mindedly oils one of his joints"
"wanders restlessly around the room"
"sneaks up clumsily behind you and shouts \"Boo!\" in your ear"
"frets about the possibility of his batteries failing"
"whistles tunelessly"
"boasts about the time he helped someone find a lost paper clip"
"yawns and looks bored"
"complains about a recent assignment in the forms filing department"
"produces a crayon from one of his compartments and scrawls
his name on the wall">>
<GLOBAL BAD-FLOYDISMS
<LTABLE 0
"stomps on your foot, for no apparent reason"
"accidentally bumps into you, and reacts by cursing your ancestors"
"produces a loud burp and fails to apologize"
"mumbles about a mysterious future in which humans will have to take
orders from robots"
"tells an off-color joke about the bizarre mating habits of flesh and
blood creatures">>
<GLOBAL PLATOISMS
<LTABLE 0
"Floyd tells Plato about a neat shortcut for calculating seventh order
differentials"
"Plato tells Floyd one of the ancient legends about the early days of the
settlement of the galaxy"
"Floyd confides to Plato that his life's dream is to get locked up overnight
in a toy factory"
"Floyd and Plato discuss their favorite battery recharging techniques"
"Plato helps polish a hard-to-reach spot on Floyd's back"
"\"You like Floyd, don't you, Plato?\" asks Floyd. \"Yes,\" replies the
taller robot, \"you're the only robot I've ever met who doesn't call me
a nerd.\" Floyd smiles"
"In a very sad voice, Floyd talks of his friend Lazarus, a medical robot on
Resida who was tragically disassembled. Plato responds, \"Now, Floyd, don't
fill your head with the sad memories of Lazarus' death. Think instead about
the joy-filled times when you and your friend were together.\" Floyd seems
awed by such wisdom"
"Floyd gives Plato a friendly hug"
"Floyd stubs his toe and begins to whimper. \"There, there,\" says Plato,
\"such a reaction will not reduce the level of pain.\" He gives Floyd a
little tickle, and Floyd begins giggling and forgets the injury">>
<ROUTINE MOVE-FLOYD-TO-FACTORY ()
<MOVE ,FLOYD ,FACTORY>
<ROB ,FLOYD <COND (<EQUAL? ,HERE ,EAST-JUNCTION ,LEVEL-FIVE>
,SOUTH-CONNECTION)
(<==? ,HERE ,SOUTH-JUNCTION ,NORTH-JUNCTION>
,EAST-CONNECTION)
(<PROB 25>
,SOUTH-JUNCTION)
(<PROB 33>
,EAST-JUNCTION)
(<PROB 50>
,NORTH-JUNCTION)
(T
,LEVEL-FIVE)>>
<MOVE ,STUN-GUN ,FLOYD>
<DEQUEUE I-FLOYD>
<DEQUEUE I-ROBOT-EVILNESS>>
<OBJECT HELEN
(IN ROBOT-POOL)
(DESC "Helen")
(FDESC
"Bin number two holds a spindly little robot, a specialized model designed
for bursting and decollating multi-part forms. A tiny nameplate on her
perforating extension reads \"Helen.\"")
(SYNONYM HELEN ROBOT TWO)
(ADJECTIVE SMALL SPINDLY ROBOT NUMBER SECOND)
(FLAGS ACTORBIT NARTICLEBIT)
(ACTION HELEN-F)>
<ROUTINE HELEN-F ()
<COND (<EQUAL? ,HELEN ,WINNER>
<COND (<VERB? HELLO>
<TELL "\"Mutual, I'm sure.\"" CR>)
(<VERB? WALK FOLLOW>
<TELL
"\"I'm supposta stay with any human I'm assigned to.\"" CR>)
(T
<TELL
"You've strayed too far from simple form-sorting to interest Helen." CR>
<STOP>)>)
(<AND <NOT <EQUAL? ,ROBOT-PICKED ,HELEN>>
<TOUCHING? ,HELEN>>
<CANT-REACH ,HELEN>)
(<AND <VERB? GIVE>
<PRSO? ASSIGNMENT-COMPLETION-FORM
ROBOT-USE-AUTHORIZATION-FORM
CLASS-THREE-SPACECRAFT-ACTIVATION-FORM>>
<CONFETTI ,PRSO>)
(<VERB? OFF ON OPEN>
<PERFORM, PRSA ,PLATO>
<RTRUE>)
(<VERB? PICK>
<PICK-ROBOT>)>>
<OBJECT REX
(IN ROBOT-POOL)
(DESC "Rex")
(FDESC
"In the first bin is a bulky robot, obviously intended for heavy lifting.
A brass plate on one of his pneumatic arm lifts says \"Rex.\"")
(SYNONYM REX ROBOT ONE)
(ADJECTIVE HEAVY ROBOT NUMBER FIRST)
(FLAGS ACTORBIT NARTICLEBIT)
(ACTION REX-F)>
<ROUTINE REX-F ()
<COND (<EQUAL? ,REX ,WINNER>
<COND (<VERB? HELLO>
<TELL "\"Yo.\"" CR>)
(<VERB? WALK FOLLOW>
<TELL "\"I'll follow youse ">
<COND (<EQUAL? ,REX ,ROBOT-PICKED>
<TELL "since I been">)
(T
<TELL "if I gets">)>
<TELL " assigned ta youse.\"" CR>)
(T
<TELL "Rex merely looks confused." CR>
<STOP>)>)
(<AND <NOT <EQUAL? ,ROBOT-PICKED ,REX>>
<TOUCHING? ,REX>>
<CANT-REACH ,REX>)
(<VERB? OFF ON OPEN>
<PERFORM, PRSA ,PLATO>
<RTRUE>)
(<VERB? PICK>
<PICK-ROBOT>)>>
<ROUTINE I-OTHER-ROBOT ()
<COND (<NOT <IN? ,ROBOT-PICKED ,HERE>>
<MOVE ,ROBOT-PICKED ,HERE>
<COND (<AND <EQUAL? ,HERE ,CARGO-BAY-ENTRANCE>
<EQUAL? ,ROBOT-PICKED ,REX>>
<JIGS-UP
" Rex trundles after you. Unfortunately, Rex is not too bright on his best
days, and today is not one of them. He forgets to stop when you do; sixteen
tons of Rex turn you into a human pancake.">)
(T
<TELL " Helen obediently follows you." CR>)>)>>
<ROUTINE CONFETTI (FORM-NAME)
<REMOVE .FORM-NAME>
<TELL
"In a spasm of vocational enthusiasm, Helen tries to burst and decollate your "
D .FORM-NAME ", leaving nothing but some useless confetti." CR>>
<ROUTINE PICK-ROBOT ()
<COND (<PRSO? ,ROBOT-PICKED>
<TELL ,SENILITY-STRIKES>)
(,ROBOT-PICKED
<TELL "You already picked " D ,ROBOT-PICKED ,PERIOD-CR>)
(T
<TELL "Use the automated robot selection equipment." CR>)>>
<ROOM CARGO-BAY
(IN ROOMS)
(DESC "Cargo Bay")
(WEST TO CARGO-BAY-ENTRANCE)
(IN TO SPACETRUCK IF SPACETRUCK-HATCH IS OPEN)
(FLAGS RLANDBIT ONBIT FLOYDBIT)
(GLOBAL SPACETRUCK-OBJECT SPACETRUCK-HATCH WINDOW)
(ACTION CARGO-BAY-F)>
<ROUTINE CARGO-BAY-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL
"This huge airlock is essentially a giant loading dock, where truckloads
of forms arrive from various printing planets throughout the sector and
are immediately distributed throughout the administrative deck. The only
exit on foot is back the way you came. A " 'SPACETRUCK-OBJECT ", its hatch ">
<OPEN-CLOSED ,SPACETRUCK-HATCH>
<TELL ", waits in the cargo bay.">)>>
;<OBJECT FORKLIFT
(IN CARGO-BAY)
(DESC "forklift")
(FDESC
"Sitting by the entrance at the port side of the bay is a heavy-duty forklift,
off and unoccupied.")
(SYNONYM FORKLIFT MOTOR)
(FLAGS VEHBIT INBIT CONTBIT OPENBIT LIGHTBIT SEARCHBIT)
(ACTION FORKLIFT-F)>
;<ROUTINE FORKLIFT-F ("OPTIONAL" (VARG <>))
<COND (<AND <VERB? DRIVE-DIR>
<PRSO? ,FORKLIFT>>
<COND (<NOT <IN? ,PROTAGONIST ,FORKLIFT>>
<SETG AWAITING-REPLY 1>
<QUEUE I-REPLY <+ ,C-ELAPSED 2>>
<TELL "From outside it?" CR>)
(<NOT <FSET? ,FORKLIFT ,ACTIVEBIT>>
<TELL "The motor is off!" CR>)
(<NOT <PRSI? ,INTDIR>>
<PERFORM ,V?DRIVE ,FORKLIFT>
<RTRUE>)
(T
<TELL
"You drive the forklift in that direction" ,ELLIPSIS>
<DO-WALK ,P-DIRECTION>
<MOVE ,FORKLIFT ,HERE>
<MOVE ,PROTAGONIST ,FORKLIFT>)>)
(<VERB? DRIVE>
<TELL ,YOULL-HAVE-TO "specify in which direction..." CR>)>>
<OBJECT SPACETRUCK-OBJECT
(IN LOCAL-GLOBALS)
(DESC "spacetruck")
(SYNONYM SPACETRUCK TRUCK SPACECRAFT)
(ADJECTIVE SPACE)
(ACTION SPACETRUCK-OBJECT-F)>
<ROUTINE SPACETRUCK-OBJECT-F ()
<COND (<VERB? ENTER WALK-TO>
<COND (<EQUAL? ,HERE ,SPACETRUCK>
<TELL ,LOOK-AROUND>)
(T
<DO-WALK ,P?IN>)>)
(<VERB? LEAVE EXIT DISEMBARK>
<COND (<EQUAL? ,HERE ,SPACETRUCK>
<DO-WALK ,P?OUT>)
(T
<TELL ,LOOK-AROUND>)>)
(<VERB? OPEN CLOSE>
<PERFORM, PRSA ,SPACETRUCK-HATCH>
<RTRUE>)
(<VERB? EXAMINE>
<COND (<EQUAL? ,HERE ,SPACETRUCK>
<V-LOOK>)
(T
<PERFORM ,V?EXAMINE ,SPACETRUCK-HATCH>
<RTRUE>)>)
(<AND <VERB? LOOK-INSIDE>
<EQUAL? ,HERE ,CARGO-BAY ,DOCKING-BAY-2>>
<PERFORM ,V?LOOK-INSIDE ,WINDOW>
<RTRUE>)
(<VERB? LAUNCH ON>
<COND (<NOT <EQUAL? ,HERE ,SPACETRUCK>>
<TELL "You're not even in it!" CR>)
(<G? ,SPACETRUCK-COUNTER 0>
<TELL ,SENILITY-STRIKES>)
(T
<TELL "That's what the slot and keypad are for!" CR>)>)
(<VERB? SEARCH>
<PERFORM ,V?SEARCH ,GLOBAL-ROOM>
<RTRUE>)>>
<ROOM SPACETRUCK
(IN ROOMS)
(DESC "Spacetruck")
(OUT PER SPACETRUCK-EXIT-F)
(FLAGS RLANDBIT ONBIT NWELDERBIT FLOYDBIT)
(GLOBAL VILLAGE WINDOW KEYPAD SPACETRUCK-OBJECT SPACETRUCK-HATCH)