-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathverbs.zap
4061 lines (3466 loc) · 75.7 KB
/
verbs.zap
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
.FUNCT V-VERBOSE
SET 'VERBOSITY,2
PRINTI "Maximum verbosity."
CRLF
CRLF
CALL V-LOOK
RSTACK
.FUNCT V-BRIEF
SET 'VERBOSITY,1
PRINTR "Brief descriptions."
.FUNCT V-SUPER-BRIEF
SET 'VERBOSITY,0
PRINTR "Super-brief descriptions."
.FUNCT V-TAME
ZERO? NAUGHTY-LEVEL \?ELS5
PRINT ALREADY-IN-MODE
RTRUE
?ELS5: SET 'NAUGHTY-LEVEL,0
PRINTR "Tame descriptions. [Yawn.]"
.FUNCT V-SUGGESTIVE
EQUAL? NAUGHTY-LEVEL,1 \?ELS5
PRINT ALREADY-IN-MODE
RTRUE
?ELS5: SET 'NAUGHTY-LEVEL,1
PRINTR "Suggestive descriptions."
.FUNCT V-LEWD,ACCEPTABLE-AGE=0
EQUAL? NAUGHTY-LEVEL,2 \?ELS3
PRINT ALREADY-IN-MODE
RTRUE
?ELS3: GRTR? AGE,17 \?ELS5
SET 'ACCEPTABLE-AGE,TRUE-VALUE
JUMP ?CND1
?ELS5: PUTB P-LEXV,0,10
PRINTI "What is your age? >"
?PRG8: READ P-INBUF,P-LEXV
CRLF
CALL NUMBER?,P-LEXSTART
EQUAL? STACK,W?NUMBER \?ELS12
LESS? P-NUMBER,18 \?ELS15
SET 'AGE,P-NUMBER
LESS? P-NUMBER,5 \?ELS18
PRINTI "Precocious, aren't you! Unfortunately"
JUMP ?CND16
?ELS18: PRINTI "Sorry"
?CND16: PRINTI ", you must be at least 18 to enter LEWD mode."
CRLF
JUMP ?REP9
?ELS15: GRTR? P-NUMBER,120 \?ELS22
PRINTI "Bullpuckies. Tell the truth. >"
JUMP ?PRG8
?ELS22: GRTR? AGE,-1 \?ELS24
LESS? AGE,19 \?ELS24
PRINTI "Liar! You said before that you were "
PRINTN AGE
PRINT PERIOD-CR
JUMP ?REP9
?ELS24: SET 'AGE,P-NUMBER
PRINTI "Acceptable age. "
SET 'ACCEPTABLE-AGE,TRUE-VALUE
JUMP ?REP9
?ELS12: PRINTI "Please tell me your age! >"
JUMP ?PRG8
?REP9: PUTB P-LEXV,0,60
?CND1: ZERO? ACCEPTABLE-AGE /FALSE
PRINTI "Switching to LEWD level."
CRLF
SET 'NAUGHTY-LEVEL,2
RETURN NAUGHTY-LEVEL
.FUNCT V-SAVE
EQUAL? HERE,AUDIENCE-CHAMBER \?CND1
ZERO? RIDDLE-ANSWERED \?CND1
PRINTI """Oh, all right,"" says"
CALL TPRINT,SULTAN
PRINTI ", ""I'll bend the rules a tad. You may SAVE."""
CRLF
CRLF
?CND1: SET 'P-CONT,FALSE-VALUE
SET 'QUOTE-FLAG,FALSE-VALUE
SAVE \?ELS10
PRINT OK
RTRUE
?ELS10: PRINT FAILED
RTRUE
.FUNCT V-RESTORE
RESTORE \?ELS5
PRINT OK
RTRUE
?ELS5: PRINT FAILED
RTRUE
.FUNCT TELL-SCORE
PRINTI "In "
PRINTN MOVES
PRINTI " turn"
EQUAL? MOVES,1 /?CND1
PRINTI "s"
?CND1: PRINTI ", you have achieved a score of, um, oh, call it "
PRINTN SCORE
PRINTI " out of "
PRINTN EXT-MAX
PRINTI " points. This gives you the rank of "
ZERO? MALE /?ELS6
GET MALE-RANKS,RANK
PRINT STACK
JUMP ?CND4
?ELS6: GET FEMALE-RANKS,RANK
PRINT STACK
?CND4: PRINT PERIOD-CR
RTRUE
.FUNCT V-SCRIPT
GET 0,8
BOR STACK,1
PUT 0,8,STACK
CALL CORP-NOTICE,STR?34
CALL V-VERSION
RSTACK
.FUNCT V-UNSCRIPT
CALL CORP-NOTICE,STR?35
CALL V-VERSION
GET 0,8
BAND STACK,-2
PUT 0,8,STACK
RTRUE
.FUNCT CORP-NOTICE,STRING
PRINTI "Here "
PRINT STRING
PRINTI " a transcript of interaction with "
PRINT LGOP-CAPS
PRINT PERIOD-CR
RTRUE
.FUNCT V-DIAGNOSE
FSET? CELL,TOUCHBIT /?ELS3
PRINTI "You're pretty drunk"
CALL RUNNING?,I-URGE
ZERO? STACK /?CND1
PRINTI ", and your bladder is about to burst"
JUMP ?CND1
?ELS3: GRTR? ION-DEATH-COUNTER,0 \?ELS8
PRINTI "You now have a "
GET ION-TABLE,ION-DEATH-COUNTER
PRINT STACK
PRINTI " headache"
JUMP ?CND1
?ELS8: FSET? CATACOMBS,MUNGBIT \?ELS10
CALL IN-CATACOMBS
ZERO? STACK /?ELS10
PRINTI "You have some tiny wounds"
JUMP ?CND1
?ELS10: ZERO? GONE-APE /?ELS18
EQUAL? SUGAR-RUSH,GORILLA-ATE-CHOCOLATE /?THN15
?ELS18: ZERO? GONE-APE \?ELS14
EQUAL? SUGAR-RUSH,HUMAN-ATE-CHOCOLATE \?ELS14
?THN15: PRINTI "You're experiencing a sugar rush"
JUMP ?CND1
?ELS14: EQUAL? HERE,RUINED-CASTLE-2 \?ELS22
FSET? HERE,MUNGBIT \?ELS22
ZERO? NAUGHTY-LEVEL /?ELS22
PRINTI "You feel "
EQUAL? NAUGHTY-LEVEL,1 \?ELS27
PRINTI "sexually unsatisfied"
JUMP ?CND1
?ELS27: PRINTI "horny"
JUMP ?CND1
?ELS22: EQUAL? HERE,IN-SPACE \?ELS31
FSET? WHITE-SUIT,WORNBIT /?ELS31
PRINTI "Brrr"
JUMP ?CND1
?ELS31: PRINTI "You are in good health"
ZERO? GONE-APE /?CND1
PRINTI " (for a gorilla)"
?CND1: PRINT PERIOD-CR
RTRUE
.FUNCT V-INVENTORY
ZERO? GONE-APE /?ELS5
FIRST? PROTAGONIST /?ELS5
PRINTR "You are empty-pawed."
?ELS5: CALL DESCRIBE-CONTENTS,PROTAGONIST,FALSE-VALUE
CALL ULTIMATELY-IN?,FLASHLIGHT
ZERO? STACK /?CND10
EQUAL? HERE,JOES-BAR,MENS-ROOM,LADIES-ROOM \?CND10
PRINTI " It's not clear why you've carried"
CALL APRINT,FLASHLIGHT
PRINTI " into "
PRINTD JOES-BAR
PRINTI ", except that the lighting in the bathrooms isn't too reliable."
?CND10: CRLF
RTRUE
.FUNCT V-QUIT
CALL TELL-SCORE
CALL DO-YOU-WISH,STR?36
CALL YES?
ZERO? STACK /?ELS5
QUIT
RTRUE
?ELS5: PRINT OK
RTRUE
.FUNCT V-RESTART
CALL TELL-SCORE
CALL DO-YOU-WISH,STR?37
CALL YES?
ZERO? STACK /FALSE
PRINTI "Restarting."
CRLF
RESTART
PRINT FAILED
RTRUE
.FUNCT DO-YOU-WISH,STRING
CRLF
PRINTI "Do you wish to "
PRINT STRING
PRINTI "? (Y is affirmative): "
RTRUE
.FUNCT YES?
?FCN: PRINTI ">"
READ P-INBUF,P-LEXV
GET P-LEXV,1
CALL YES-WORD,STACK
ZERO? STACK \TRUE
GET P-LEXV,1
CALL NO-WORD,STACK
ZERO? STACK \FALSE
GET P-LEXV,1
EQUAL? STACK,W?N /FALSE
PRINTI "Please answer YES or NO. "
JUMP ?FCN
.FUNCT FINISH,REPEATING=0,CNT=0
?PRG1: CRLF
ZERO? REPEATING \?CND3
SET 'REPEATING,TRUE-VALUE
CALL TELL-SCORE
?CND3: PRINTI "Would you like to start over, restore a saved position, or end this session of the game?
(Type RESTART, RESTORE, or QUIT): >"
PUTB P-LEXV,0,10
READ P-INBUF,P-LEXV
PUTB P-LEXV,0,60
INC 'CNT
GET P-LEXV,1
EQUAL? STACK,W?RESTAR \?ELS8
RESTART
PRINT FAILED
JUMP ?PRG1
?ELS8: GET P-LEXV,1
EQUAL? STACK,W?RESTOR \?ELS10
RESTORE /?ELS10
PRINT FAILED
JUMP ?PRG1
?ELS10: GET P-LEXV,1
EQUAL? STACK,W?QUIT,W?Q /?THN15
GRTR? CNT,10 \?PRG1
?THN15: QUIT
JUMP ?PRG1
.FUNCT V-STATUS
PRINTI "You are currently in "
ZERO? NAUGHTY-LEVEL \?ELS3
PRINTI "tame"
JUMP ?CND1
?ELS3: EQUAL? NAUGHTY-LEVEL,1 \?ELS5
PRINTI "suggestive"
JUMP ?CND1
?ELS5: PRINTI "lewd"
?CND1: PRINTI " mode and are getting "
ZERO? VERBOSITY \?ELS10
PRINTI "super-brief"
JUMP ?CND8
?ELS10: EQUAL? VERBOSITY,1 \?ELS12
PRINTI "brief"
JUMP ?CND8
?ELS12: PRINTI "verbose"
?CND8: PRINTI " descriptions. "
CALL TELL-SCORE
RSTACK
.FUNCT V-VERSION,CNT=17,V
GET 0,1
BAND STACK,2047 >V
PRINT LGOP-CAPS
CRLF
PRINTI "Infocom interactive fiction -- a racy space-age spoof
Copyright (c) 1986 by Infocom, Inc. All rights reserved.
"
PRINT LGOP-CAPS
PRINTI " is a trademark of Infocom, Inc.
Release "
PRINTN V
PRINTI " / Serial number "
?PRG1: IGRTR? 'CNT,23 \?ELS5
JUMP ?REP2
?ELS5: GETB 0,CNT
PRINTC STACK
JUMP ?PRG1
?REP2: CRLF
RTRUE
.FUNCT V-$COMMAND
DIRIN 1
RTRUE
.FUNCT V-$RANDOM
EQUAL? PRSO,INTNUM /?ELS5
PRINTR "ILLEGAL."
?ELS5: SUB 0,P-NUMBER
RANDOM STACK
RTRUE
.FUNCT V-$RECORD
DIROUT D-RECORD-ON
RTRUE
.FUNCT V-$UNRECORD
DIROUT D-RECORD-OFF
RTRUE
.FUNCT V-$VERIFY
EQUAL? PRSO,INTNUM \?ELS5
EQUAL? P-NUMBER,69 \?ELS5
PRINTN SERIAL
CRLF
RTRUE
?ELS5: PRINTI "Verifying."
CRLF
VERIFY \?ELS14
PRINT OK
RTRUE
?ELS14: CRLF
PRINTR "** Bad **"
.FUNCT V-ALARM
EQUAL? PRSO,ROOMS \?ELS5
CALL PERFORM-PRSA,ME
RTRUE
?ELS5: PRINTI "But"
CALL TPRINT-PRSO
PRINTR " isn't asleep."
.FUNCT V-ANSWER
ZERO? AWAITING-REPLY /?ELS5
GET P-LEXV,P-CONT
CALL YES-WORD,STACK
ZERO? STACK /?ELS5
CALL V-YES
CALL STOP
RSTACK
?ELS5: ZERO? AWAITING-REPLY /?ELS9
GET P-LEXV,P-CONT
CALL NO-WORD,STACK
ZERO? STACK /?ELS9
CALL V-NO
CALL STOP
RSTACK
?ELS9: CALL RUNNING?,I-SNEEZE
ZERO? STACK /?ELS13
CALL RIDDLE-ANSWER
RSTACK
?ELS13: IN? HAREM-GUARD,HERE \?ELS15
CALL PICK-WIFE
RSTACK
?ELS15: PRINTI "Nobody is awaiting your answer."
CRLF
CALL STOP
RSTACK
.FUNCT V-ANSWER-KLUDGE
CALL NOUN-USED,W?I,ME
ZERO? STACK /?ELS5
CALL V-INVENTORY
RSTACK
?ELS5: SET 'P-WON,FALSE-VALUE
PRINT NO-VERB
CALL STOP
RSTACK
.FUNCT ORPHAN-VERB
EQUAL? HERE,AUDIENCE-CHAMBER,BEDROOM /?CND1
SET 'AWAITING-FAKE-ORPHAN,FALSE-VALUE
RFALSE
?CND1: PUT P-VTBL,0,W?ZZMGCK
PUT P-OVTBL,0,W?ANSWER
PUT P-OTBL,P-VERB,ACT?ZZMGCK
PUT P-OTBL,P-VERBN,P-VTBL
PUT P-OTBL,P-PREP1,0
PUT P-OTBL,P-PREP1N,0
PUT P-OTBL,P-PREP2,0
PUT P-OTBL,5,0
PUT P-OTBL,P-NC1,1
PUT P-OTBL,P-NC1L,0
PUT P-OTBL,P-NC2,0
PUT P-OTBL,P-NC2L,0
SET 'P-OFLAG,TRUE-VALUE
RETURN P-OFLAG
.FUNCT V-APPLAUD
CALL IN-CATACOMBS
ZERO? STACK /?CND1
CALL QUEUE,I-BEETLES,6
?CND1: PRINTR "Clap."
.FUNCT V-APPLY
FSET? PRSO,WEARBIT \?ELS5
CALL PERFORM,V?WEAR,PRSO
RTRUE
?ELS5: SET 'AWAITING-REPLY,2
CALL QUEUE,I-REPLY,2
PRINTI "Apply"
CALL TPRINT-PRSO
PRINTR " for what? A job?"
.FUNCT PRE-SPEAK
ZERO? GONE-APE /?ELS5
PRINTI "You open "
PRINTD MOUTH
PRINTI " to speak, but all that comes out are a few grunts."
CRLF
CALL STOP
RSTACK
?ELS5: FSET? EARS,MUNGBIT \FALSE
PRINT YOU-CANT
PRINTI "carry on a conversation when "
PRINTD EARS
PRINTI " are"
EQUAL? EARS,HAND-COVER \?ELS11
PRINTI " covered"
JUMP ?CND9
?ELS11: PRINTI " plugged up"
?CND9: PRINT PERIOD-CR
CALL STOP
RSTACK
.FUNCT V-ASK-ABOUT,OWINNER
EQUAL? PRSO,ME \?ELS5
CALL PERFORM,V?TELL,ME
RTRUE
?ELS5: FSET? PRSO,ACTORBIT /?THN8
EQUAL? PRSO,INTNUM \?ELS7
EQUAL? P-NUMBER,CHOICE-NUMBER \?ELS7
IN? SULTANS-WIFE,HERE \?ELS7
?THN8: SET 'OWINNER,WINNER
SET 'WINNER,PRSO
CALL PERFORM,V?TELL-ABOUT,ME,PRSI
SET 'WINNER,OWINNER
CALL THIS-IS-IT,PRSI
CALL THIS-IS-IT,PRSO
RTRUE
?ELS7: CALL PERFORM,V?TELL,PRSO
RTRUE
.FUNCT V-ASK-FOR
PRINTI "Unsurprisingly,"
CALL TPRINT-PRSO
PRINTR " doesn't oblige."
.FUNCT V-ASK-NO-ONE-FOR,ACTOR
CALL FIND-IN,HERE,ACTORBIT >ACTOR
ZERO? ACTOR /?ELS5
CALL PERFORM,V?ASK-FOR,ACTOR,PRSO
RTRUE
?ELS5: CALL NO-ONE-HERE,STR?38
RSTACK
.FUNCT V-BARTER-WITH
FSET? PRSO,ACTORBIT \?ELS5
PRINTI "But"
CALL TPRINT-PRSO
PRINTR " has nothing worth trading for."
?ELS5: CALL IMPOSSIBLES
RSTACK
.FUNCT V-BARTER-FOR
CALL IMPOSSIBLES
RSTACK
.FUNCT V-BEND
EQUAL? P-PRSA-WORD,W?SPREAD \?ELS5
FSET? PRSO,ACTORBIT \?ELS10
CALL V-BOARD
RSTACK
?ELS10: CALL HACK-HACK,STR?39
RSTACK
?ELS5: CALL HACK-HACK,STR?40
RSTACK
.FUNCT V-BITE
CALL HACK-HACK,STR?41
RSTACK
.FUNCT V-BLOW
FSET? PRSO,ACTORBIT \?ELS5
CALL PERFORM,V?EAT,PRSO
RTRUE
?ELS5: CALL CANT-VERB-A-PRSO,STR?42
RSTACK
.FUNCT PRE-BOARD
IN? PROTAGONIST,PRSO \?ELS5
PRINT LOOK-AROUND
RTRUE
?ELS5: CALL ULTIMATELY-IN?,PRSO
ZERO? STACK /?ELS7
EQUAL? PRSO,FLEXIBLE-HOLE /?ELS7
PRINT HOLDING-IT
RTRUE
?ELS7: CALL UNTOUCHABLE?,PRSO
ZERO? STACK /FALSE
CALL CANT-REACH,PRSO
RSTACK
.FUNCT V-BOARD,AV
LOC PROTAGONIST >AV
FSET? PRSO,VEHBIT \?ELS5
LOC PRSO
EQUAL? STACK,HERE,LOCAL-GLOBALS /?CND6
PRINT YOU-CANT
PRINTI "board"
CALL TPRINT-PRSO
PRINTI " when it's "
LOC PRSO
FSET? STACK,SURFACEBIT \?ELS11
PRINTI "on"
JUMP ?CND9
?ELS11: PRINTI "in"
?CND9: LOC PRSO
CALL TRPRINT,STACK
RTRUE
?CND6: MOVE PROTAGONIST,PRSO
PRINTI "You are now "
FSET? PRSO,INBIT \?ELS16
PRINTI "i"
JUMP ?CND14
?ELS16: PRINTI "o"
?CND14: PRINTI "n"
CALL TPRINT-PRSO
PRINTI "."
IN? SIDEKICK,HERE \?CND19
EQUAL? PRSO,STALLION,RAFT,BARGE /?THN24
EQUAL? PRSO,TREE-HOLE \?CND19
?THN24: MOVE SIDEKICK,PRSO
PRINTI " "
CALL DPRINT-SIDEKICK
PRINTI " gets "
FSET? PRSO,INBIT \?ELS28
PRINTI "i"
JUMP ?CND26
?ELS28: PRINTI "o"
?CND26: PRINTI "n behind you."
?CND19: EQUAL? PRSO,BARGE \?CND31
FSET? BARGE,TOUCHBIT /?CND31
PRINTI " You notice some simple controls."
?CND31: FSET PRSO,TOUCHBIT
CRLF
RTRUE
?ELS5: FSET? PRSO,ACTORBIT \?ELS37
PRINTR "Let's not beat around the bush. Come out and say what you mean."
?ELS37: GET P-ITBL,P-PREP1
EQUAL? STACK,PR?IN \?ELS39
CALL CANT-VERB-A-PRSO,STR?43
RSTACK
?ELS39: CALL CANT-VERB-A-PRSO,STR?44
RSTACK
.FUNCT V-BOARD-DIR
CALL RECOGNIZE
RSTACK
.FUNCT V-BURN
ZERO? PRSI \?CND1
CALL ULTIMATELY-IN?,TORCH
ZERO? STACK /?ELS6
FSET? TORCH,ONBIT \?ELS6
SET 'PRSI,TORCH
PRINTI "[with the torch]"
CRLF
JUMP ?CND1
?ELS6: PRINTR "You have no source of fire."
?CND1: EQUAL? PRSI,TORCH \?THN16
FSET? TORCH,ONBIT /?ELS15
?THN16: PRINT YOU-CANT
PRINTI "burn something with"
CALL ARPRINT,PRSI
RSTACK
?ELS15: EQUAL? PRSO,SHEET \?ELS19
ZERO? SHEET-TIED /?ELS19
CALL DO-FIRST,STR?45,PRSO
RSTACK
?ELS19: IN? PROTAGONIST,PRSO \?ELS23
CALL DO-FIRST,STR?46,PRSO
RSTACK
?ELS23: CALL ULTIMATELY-IN?,PRSO
ZERO? STACK /?ELS25
CALL DO-FIRST,STR?47,PRSO
RSTACK
?ELS25: FSET? PRSO,BURNBIT \?ELS27
EQUAL? PRSO,LEAVES \?CND28
ZERO? LEAVES-PLACED /?CND28
SET 'PRSO,TRELLIS
?CND28: REMOVE PRSO
PRINTI "In an instant,"
CALL TPRINT-PRSO
EQUAL? PRSO,TRELLIS \?ELS35
ZERO? LEAVES-PLACED /?ELS35
REMOVE LEAVES
SET 'LEAVES-PLACED,FALSE-VALUE
PRINTI " and leaves are"
JUMP ?CND33
?ELS35: PRINTI " is"
?CND33: EQUAL? PRSO,TRELLIS \?ELS42
CALL UNDO-TRAP
JUMP ?CND40
?ELS42: EQUAL? PRSO,LEAVES \?CND40
SET 'LEAVES-PLACED,FALSE-VALUE
?CND40: PRINTR " consumed by fire."
?ELS27: CALL CANT-VERB-A-PRSO,STR?48
RSTACK
.FUNCT V-BUY
PRINTR "Sorry, there aren't any on sale here."
.FUNCT V-BUY-WITH
EQUAL? PRSI,TEN-MARSMID-COIN,ONE-MARSMID-COIN \?ELS5
CALL PERFORM,V?BUY,PRSO
RTRUE
?ELS5: PRINTI "That must be a queer planet you come from, where"
CALL APRINT,PRSI
PRINTR " is a unit of money."
.FUNCT V-CALL
EQUAL? HERE,VIZICOMM-BOOTH \?ELS5
CALL PERFORM,V?SET,VIZICOMM
RTRUE
?ELS5: CALL VISIBLE?,PRSO
ZERO? STACK \?ELS7
CALL CANT-SEE,PRSO
RSTACK
?ELS7: CALL PERFORM,V?TELL,PRSO
RTRUE
.FUNCT V-CAST-OFF
EQUAL? PRSO,ROOMS \?ELS5
LOC PROTAGONIST
CALL PERFORM,V?LAUNCH,STACK
RTRUE
?ELS5: CALL PERFORM,V?TAKE-OFF,PRSO
RTRUE
.FUNCT V-CATCH
PRINTR "The only thing you're good at catching is a cold."
.FUNCT V-CHASTISE
EQUAL? PRSO,INTDIR \?ELS5
PRINT YOULL-HAVE-TO
PRINTR "go in that direction to see what's there."
?ELS5: PRINTR "Use prepositions to indicate precisely what you want to do: LOOK AT the object, LOOK INSIDE it, LOOK UNDER it, etc."
.FUNCT V-CHEER
EQUAL? PRSO,ROOMS \?ELS5
PRINT OK
RTRUE
?ELS5: PRINTI "Probably,"
CALL TPRINT-PRSO
PRINTR " is as happy as possible."
.FUNCT V-CLEAN
SET 'AWAITING-REPLY,2
CALL QUEUE,I-REPLY,2
PRINTR "Do you also do windows?"
.FUNCT V-CLICK
PRINTR """Click."""
.FUNCT V-CLIMB
EQUAL? PRSO,ROOMS \?ELS5
CALL DO-WALK,P?UP
RSTACK
?ELS5: CALL ULTIMATELY-IN?,PRSO
ZERO? STACK /?ELS7
PRINT HOLDING-IT
RTRUE
?ELS7: CALL IMPOSSIBLES
RSTACK
.FUNCT V-CLIMB-DOWN
EQUAL? PRSO,ROOMS \?ELS5
CALL DO-WALK,P?DOWN
RSTACK
?ELS5: CALL ULTIMATELY-IN?,PRSO
ZERO? STACK /?ELS7
PRINT HOLDING-IT
RTRUE
?ELS7: FSET? PRSO,ACTORBIT \?ELS9
EQUAL? P-PRSA-WORD,W?GO \?ELS9
CALL PERFORM,V?EAT,PRSO
RTRUE
?ELS9: CALL IMPOSSIBLES
RSTACK
.FUNCT V-CLIMB-ON
FSET? PRSO,VEHBIT /?THN6
FSET? PRSO,ACTORBIT \?ELS5
?THN6: CALL PERFORM,V?BOARD,PRSO
RTRUE
?ELS5: CALL ULTIMATELY-IN?,PRSO
ZERO? STACK /?ELS9
PRINT HOLDING-IT
RTRUE
?ELS9: GET P-ITBL,P-PREP1
EQUAL? STACK,PR?IN \?ELS11
CALL CANT-VERB-A-PRSO,STR?49
RSTACK
?ELS11: CALL CANT-VERB-A-PRSO,STR?50
RSTACK
.FUNCT V-CLIMB-OVER
CALL ULTIMATELY-IN?,PRSO
ZERO? STACK /?ELS5
PRINT HOLDING-IT
RTRUE
?ELS5: CALL IMPOSSIBLES
RSTACK
.FUNCT V-CLIMB-UP
EQUAL? PRSO,ROOMS \?ELS5
CALL DO-WALK,P?UP
RSTACK
?ELS5: CALL ULTIMATELY-IN?,PRSO
ZERO? STACK /?ELS7
PRINT HOLDING-IT
RTRUE
?ELS7: CALL IMPOSSIBLES
RSTACK
.FUNCT V-CLOSE
FSET? PRSO,SURFACEBIT /?THN6
FSET? PRSO,ACTORBIT /?THN6
FSET? PRSO,VEHBIT \?ELS5
?THN6: CALL CANT-VERB-A-PRSO,STR?51
RSTACK
?ELS5: FSET? PRSO,DOORBIT /?THN10
FSET? PRSO,CONTBIT \?ELS9
?THN10: FSET? PRSO,OPENBIT \?ELS16
FCLEAR PRSO,OPENBIT
PRINTI "Okay,"
CALL TPRINT-PRSO
PRINTI " is now closed."
CRLF
CALL NOW-DARK?
RSTACK
?ELS16: PRINT ALREADY-IS
RTRUE
?ELS9: CALL CANT-VERB-A-PRSO,STR?51
RSTACK
.FUNCT V-COME
ZERO? NAUGHTY-LEVEL \?ELS5
PRINTR "Go."
?ELS5: PRINTR "You're not even breathing hard."
.FUNCT V-COPULATE,LOVER=0
CALL FIND-IN,HERE,ACTORBIT,STR?52 >LOVER
ZERO? LOVER /?ELS5
CALL PERFORM,V?FUCK,LOVER
RTRUE
?ELS5: CALL PERFORM,V?MAKE,LOVE
RTRUE
.FUNCT V-COUNT
CALL IMPOSSIBLES
RSTACK
.FUNCT V-CRAWL-UNDER
FSET? PRSO,TAKEBIT /?ELS5
CALL TELL-HIT-HEAD
RSTACK
?ELS5: CALL IMPOSSIBLES
RSTACK
.FUNCT V-CROSS
CALL V-WALK-AROUND
RSTACK
.FUNCT V-CUT
ZERO? PRSI \?ELS5
CALL IMPOSSIBLES
RSTACK
?ELS5: PRINTI "To put it bluntly, neither"
CALL TPRINT-PRSI
PRINTR " nor you are very sharp."
.FUNCT V-DECODE
PRINT YOULL-HAVE-TO
PRINTR "figure it out yourself."
.FUNCT V-DEFLATE
CALL IMPOSSIBLES
RSTACK
.FUNCT V-DIG
CALL WASTES
RSTACK
.FUNCT V-DISEMBARK
ZERO? PRSO \?ELS5
IN? PROTAGONIST,HERE /?ELS10
LOC PROTAGONIST
CALL PERFORM-PRSA,STACK
RTRUE
?ELS10: PRINT LOOK-AROUND
RTRUE
?ELS5: EQUAL? P-PRSA-WORD,W?TAKE \?ELS14
CALL PERFORM,V?TAKE,PRSO
RTRUE
?ELS14: IN? PROTAGONIST,PRSO /?ELS16
PRINT LOOK-AROUND
RETURN 8
?ELS16: EQUAL? HERE,CANAL \?ELS20
CALL PERFORM,V?ENTER,CANAL-OBJECT
RTRUE
?ELS20: MOVE PROTAGONIST,HERE
PRINTI "You"
IN? SIDEKICK,PRSO \?CND23
MOVE SIDEKICK,HERE
PRINTI " and "
CALL DPRINT-SIDEKICK
?CND23: PRINTI " get o"
CALL OFF-VEHICLE?,PRSO
ZERO? STACK /?ELS28
PRINTI "ff"
JUMP ?CND26
?ELS28: PRINTI "ut of"
?CND26: CALL TPRINT-PRSO
PRINTI "."
IN? SIDEKICK,SECOND-SLAB \?CND31
MOVE SIDEKICK,HERE
PRINTI " You also "
ZERO? SIDEKICKS-BODY-TIED-TO-SLAB /?ELS36
PRINTI "untie "
CALL DPRINT-SIDEKICK
PRINTI " and help "
CALL HIM-HER
JUMP ?CND34
?ELS36: PRINTI "help "
CALL DPRINT-SIDEKICK
?CND34: PRINTI " up from"
CALL TPRINT,SECOND-SLAB
PRINTI "."
?CND31: CRLF
RTRUE
.FUNCT V-DRESS
ZERO? PRSO /?ELS5
FSET? PRSO,ACTORBIT \?ELS11
FSET? PRSO,FEMALEBIT \?ELS14
PRINTI "Sh"
JUMP ?CND12
?ELS14: PRINTI "H"
?CND12: PRINTR "e is dressed!"
?ELS11: CALL IMPOSSIBLES
RSTACK
?ELS5: SET 'PRSO,ROOMS
CALL V-GET-DRESSED
RSTACK
.FUNCT V-DRINK
CALL CANT-VERB-A-PRSO,STR?53
RSTACK
.FUNCT V-DRINK-FROM
CALL IMPOSSIBLES
RSTACK
.FUNCT V-DROP
CALL SPECIAL-DROP
ZERO? STACK \FALSE
LOC PROTAGONIST
EQUAL? STACK,BARGE,RAFT /?THN9
LOC PROTAGONIST
EQUAL? STACK,TREE-HOLE,CAGE \?ELS8
?THN9: LOC PROTAGONIST
MOVE PRSO,STACK
JUMP ?CND6
?ELS8: MOVE PRSO,HERE
?CND6: PRINTR "Dropped."
.FUNCT SPECIAL-DROP
CALL IN-CATACOMBS
ZERO? STACK /?ELS5
REMOVE PRSO
PRINTI "With a splash,"
CALL TPRINT-PRSO
PRINTR " is lost forever."
?ELS5: CALL IN-SPACE?
ZERO? STACK /?ELS7
MOVE PRSO,PROTAGONIST
PRINTI "In the absence of gravity,"
CALL TPRINT-PRSO
PRINTI " floats back into "
PRINTD HANDS
PRINTR "s."
?ELS7: EQUAL? HERE,EXIT-SHOP \?ELS9
MOVE PRSO,DUST
PRINTI "You lose"
CALL TPRINT-PRSO
PRINTR " in the dust."
?ELS9: EQUAL? PRSO,TORCH \FALSE
FSET? TORCH,ONBIT \FALSE
IN? PROTAGONIST,BARGE \FALSE
CALL PERFORM,V?PUT,TORCH,BARGE
RTRUE