-
Notifications
You must be signed in to change notification settings - Fork 18
/
verbs.zap
3371 lines (2875 loc) · 75.1 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 'VERBOSE,TRUE-VALUE
SET 'SUPER-BRIEF,FALSE-VALUE
PRINTI "Maximum verbosity."
CRLF
CRLF
CALL V-LOOK
RSTACK
.FUNCT V-BRIEF
SET 'VERBOSE,FALSE-VALUE
SET 'SUPER-BRIEF,FALSE-VALUE
PRINTR "Brief descriptions."
.FUNCT V-SUPER-BRIEF
SET 'SUPER-BRIEF,TRUE-VALUE
PRINTR "Superbrief descriptions."
.FUNCT V-DIAGNOSE,BOTH=0
LESS? AWAKE,0 \?ELS3
PRINTI "You are wide awake"
JUMP ?CND1
?ELS3: PRINTI "You are "
GET TIRED-TELL,AWAKE
PRINT STACK
?CND1: PRINTI ", and you are in good health."
GRTR? HUNGER-LEVEL,0 /?THN15
GRTR? THIRST-LEVEL,0 \?CND12
?THN15: PRINTI " You feel "
GRTR? HUNGER-LEVEL,0 \?CND19
SET 'BOTH,TRUE-VALUE
GET HUNGER-THIRST-TABLE,HUNGER-LEVEL
PRINT STACK
PRINTI " hungry"
?CND19: GRTR? THIRST-LEVEL,0 \?CND26
ZERO? BOTH /?CND29
PRINTI ", and "
?CND29: GET HUNGER-THIRST-TABLE,THIRST-LEVEL
PRINT STACK
PRINTI " thirsty"
?CND26: PRINTI "."
?CND12: ZERO? BITTEN /?CND41
PRINTI " You have a small bite on your hand which doesn't seem too serious."
?CND41: CRLF
RTRUE
.FUNCT V-INVENTORY
FIRST? PROTAGONIST \?ELS5
CALL PRINT-CONT,PROTAGONIST
RSTACK
?ELS5: PRINTI "You are empty-"
ZERO? FWEEPED /?ELS12
PRINTI "taloned"
JUMP ?CND10
?ELS12: PRINTI "handed"
?CND10: PRINTR "."
.FUNCT V-QUIT
CALL V-SCORE
CALL DO-YOU-WISH,STR?18
CALL YES?
ZERO? STACK /?ELS5
QUIT
RTRUE
?ELS5: PRINTR "Ok."
.FUNCT V-RESTART
CALL V-SCORE
CALL DO-YOU-WISH,STR?19
CALL YES?
ZERO? STACK /FALSE
PRINTI "Restarting."
CRLF
RESTART
PRINTR "Failed."
.FUNCT DO-YOU-WISH,STRING
CRLF
PRINTI "Do you wish to "
PRINT STRING
PRINTI "? (Y is affirmative): "
RTRUE
.FUNCT FINISH,REPEATING=0
CRLF
ZERO? REPEATING \?CND1
CALL V-SCORE
CRLF
?CND1: PRINTI "Would you like to restart the game from the beginning, restore a saved game position, or end this session of the game? (Type RESTART, RESTORE, or QUIT):
>"
PUTB P-INBUF,0,10
READ P-INBUF,P-LEXV
PUTB P-INBUF,0,60
GET P-LEXV,1
EQUAL? STACK,W?RESTAR \?ELS10
RESTART
PRINTI "Failed."
CRLF
CALL FINISH,TRUE-VALUE
RSTACK
?ELS10: GET P-LEXV,1
EQUAL? STACK,W?RESTOR \?ELS14
CALL V-RESTORE
CALL FINISH,TRUE-VALUE
RSTACK
?ELS14: GET P-LEXV,1
EQUAL? STACK,W?QUIT,W?Q \?ELS16
QUIT
RTRUE
?ELS16: CALL FINISH,TRUE-VALUE
RSTACK
.FUNCT YES?
?FCN: PRINTI ">"
PUTB P-INBUF,0,10
READ P-INBUF,P-LEXV
PUTB P-INBUF,0,60
GET P-LEXV,1
EQUAL? STACK,W?YES,W?Y /TRUE
GET P-LEXV,1
EQUAL? STACK,W?NO,W?N /FALSE
PRINTI "Please type YES or NO."
CRLF
CRLF
JUMP ?FCN
.FUNCT V-RESTORE
RESTORE /FALSE
PRINTR "Failed."
.FUNCT V-SAVE
SAVE \?ELS5
PRINTR "Ok."
?ELS5: PRINTR "Failed."
.FUNCT V-SCORE
ZERO? POOFED /?ELS3
PRINTI "If you still existed, your score would be "
JUMP ?CND1
?ELS3: PRINTI "Your score is "
?CND1: PRINTN SCORE
PRINTI " of a possible 400, in "
PRINTN MOVES
PRINTI " move"
EQUAL? MOVES,1 /?CND13
PRINTI "s"
?CND13: PRINTI ". This puts you in the class of "
LESS? SCORE,0 \?ELS22
PRINTI "Menace to Society"
JUMP ?CND20
?ELS22: DIV SCORE,50
GET RANKINGS,STACK
PRINT STACK
?CND20: PRINTR "."
.FUNCT V-SCRIPT
GET 0,8
BOR STACK,1
PUT 0,8,STACK
PRINTI "Here begins"
PRINT COPR-NOTICE
CRLF
CALL V-VERSION
RSTACK
.FUNCT V-UNSCRIPT
PRINTI "Here ends"
PRINT COPR-NOTICE
CRLF
CALL V-VERSION
GET 0,8
BAND STACK,-2
PUT 0,8,STACK
RTRUE
.FUNCT V-VERSION,CNT=17
PRINTI "SORCERER
Infocom interactive fiction - a fantasy story
Copyright (c) 1984 by Infocom, Inc. All rights reserved.
SORCERER is a trademark of Infocom, Inc.
Release "
GET 0,1
BAND STACK,2047
PRINTN STACK
PRINTI " / Serial number "
?PRG5: IGRTR? 'CNT,23 \?ELS9
JUMP ?REP6
?ELS9: GETB 0,CNT
PRINTC STACK
JUMP ?PRG5
?REP6: CRLF
RTRUE
.FUNCT V-$VERIFY
EQUAL? PRSO,INTNUM \?ELS5
EQUAL? P-NUMBER,502 \?ELS5
PRINTN SERIAL
CRLF
RTRUE
?ELS5: PRINTI "Performing the VERIFY spell..."
CRLF
VERIFY \?ELS18
PRINTR "Good."
?ELS18: CRLF
PRINTR "** Bad **"
.FUNCT V-$COMMAND
DIRIN 1
RTRUE
.FUNCT V-$RANDOM
EQUAL? PRSO,INTNUM /?ELS5
PRINTR "Illegal call to #RANDOM."
?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-ALARM
EQUAL? PRSO,ROOMS \?ELS5
CALL PERFORM,V?ALARM,ME
RTRUE
?ELS5: PRINTI "I don't think that"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR " is sleeping."
.FUNCT V-ANSWER
PRINTI "Nobody seems to be awaiting your answer."
CRLF
CALL STOP
RSTACK
.FUNCT V-ASK-ABOUT
EQUAL? PRSO,ME \?ELS5
CALL PERFORM,V?TELL,ME
RTRUE
?ELS5: FSET? PRSO,ACTORBIT \?ELS7
PRINTI "After a moment's thought,"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTI " denies any knowledge of"
CALL ARTICLE,PRSI,TRUE-VALUE
PRINTI "."
EQUAL? PRSO,PRSI \?CND14
PRINTI " (Rather disingenuous, if you ask me.)"
?CND14: CRLF
RTRUE
?ELS7: CALL PERFORM,V?TELL,PRSO
RTRUE
.FUNCT V-ASK-FOR
EQUAL? PRSO,YOUNGER-SELF \?CND1
EQUAL? PRSI,SPELL-BOOK \?CND1
CALL SPELL-BOOK-PASS-OFF-CHECK
ZERO? STACK \TRUE
?CND1: PRINTI "Unsurprisingly,"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR " is not likely to oblige."
.FUNCT V-ATTACK
CALL IKILL,STR?30
RSTACK
.FUNCT V-BITE
CALL HACK-HACK,STR?31
RSTACK
.FUNCT PRE-BOARD,AV
LOC PROTAGONIST >AV
FSET? PRSO,VEHBIT \?ELS3
ZERO? FLYING /?ELS6
CALL WHILE-FLYING
RETURN 2
?ELS6: FSET? AV,VEHBIT \FALSE
PRINTI "You are already in"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTI "!"
CRLF
RETURN 2
?ELS3: PRINTI "You can't get into"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTI "!"
CRLF
RETURN 2
.FUNCT V-BOARD
MOVE PROTAGONIST,PRSO
PRINTI "You are now in"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTI "."
CRLF
GETP PRSO,P?ACTION
CALL STACK,M-ENTER
RSTACK
.FUNCT V-BURN
ZERO? PRSI \?ELS5
PRINTR "Your blazing gaze is insufficient."
?ELS5: CALL WITH???
RSTACK
.FUNCT V-CHASTISE
PRINTR "Use prepositions to indicate precisely what you want to do: LOOK AT the object, LOOK INSIDE it, LOOK UNDER it, etc."
.FUNCT V-CLIMB-DOWN
EQUAL? PRSO,ROOMS \?ELS5
CALL DO-WALK,P?DOWN
RSTACK
?ELS5: CALL V-DEFLATE
RSTACK
.FUNCT V-CLIMB-FOO
EQUAL? PRSO,ROOMS \?ELS5
CALL DO-WALK,P?UP
RSTACK
?ELS5: CALL V-DEFLATE
RSTACK
.FUNCT V-CLIMB-ON
FSET? PRSO,VEHBIT \?ELS5
CALL PERFORM,V?BOARD,PRSO
RTRUE
?ELS5: PRINTI "You can't climb onto"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR "."
.FUNCT V-CLIMB-OVER
PRINTR "You can't do that."
.FUNCT V-CLIMB-UP
EQUAL? PRSO,ROOMS \?ELS5
CALL DO-WALK,P?UP
RSTACK
?ELS5: CALL V-DEFLATE
RSTACK
.FUNCT V-CLOSE
FSET? PRSO,SCROLLBIT \?ELS5
CALL TELL-ME-HOW
RSTACK
?ELS5: FSET? PRSO,ACTORBIT \?ELS7
PRINTR "Huh?"
?ELS7: FSET? PRSO,SURFACEBIT \?ELS11
PRINTI "There's no way to close"
CALL ARTICLE,PRSO
PRINTR "."
?ELS11: FSET? PRSO,DOORBIT \?ELS17
FSET? PRSO,OPENBIT \?ELS22
PRINTI "Okay,"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTI " is now closed."
CRLF
FCLEAR PRSO,OPENBIT
RTRUE
?ELS22: CALL ALREADY-CLOSED
RSTACK
?ELS17: FSET? PRSO,CONTBIT /?THN31
EQUAL? PRSO,JOURNAL \?ELS30
?THN31: FSET? PRSO,OPENBIT \?ELS37
FCLEAR PRSO,OPENBIT
PRINTI "Closed."
CALL LIT?,HERE >LIT
ZERO? LIT \?CND40
ZERO? BLORTED \?CND40
PRINTI " "
CALL NOW-BLACK
?CND40: CRLF
RTRUE
?ELS37: CALL ALREADY-CLOSED
RSTACK
?ELS30: CALL TELL-ME-HOW
RSTACK
.FUNCT V-COMBO
IN? YOUNGER-SELF,HERE \?ELS5
EQUAL? PRSO,INTNUM \?ELS5
PRINTR "Don't tell me. Talk to your confused twin over there."
?ELS5: PRINTR "What are you talking about?"
.FUNCT V-COMPARE
CALL V-SIT
RSTACK
.FUNCT V-COUNT
PRINTR "You have lost your mind."
.FUNCT V-CROSS
PRINTR "You can't cross that!"
.FUNCT V-CURSE
PRINTR "Such language from an Enchanter!"
.FUNCT V-CUT
FSET? PRSO,ACTORBIT \?ELS5
CALL PERFORM,V?KILL,PRSO,PRSI
RTRUE
?ELS5: FSET? PRSO,SCROLLBIT \?ELS7
FSET? PRSI,WEAPONBIT \?ELS7
MOVE PRSO,DIAL
PRINTI "Your skillful"
PRINTD PRSI
PRINTI "smanship slices"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR " into slivers, which vanish."
?ELS7: FSET? PRSI,WEAPONBIT /?ELS15
PRINTI "I doubt that the ""cutting edge"" of"
CALL ARTICLE,PRSI
PRINTR " is adequate."
?ELS15: PRINTI "Strange concept, cutting"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR "...."
.FUNCT V-DEFLATE
PRINTR "Bizarre."
.FUNCT V-DIG
ZERO? FLYING /?ELS5
CALL WHILE-FLYING
RSTACK
?ELS5: CALL V-SIT
RSTACK
.FUNCT V-DISEMBARK
LOC PROTAGONIST
EQUAL? STACK,PRSO /?ELS5
CALL LOOK-AROUND-YOU
RETURN 2
?ELS5: PRINTI "You are now on your feet."
CRLF
MOVE PROTAGONIST,HERE
RTRUE
.FUNCT V-DRINK,S
PRINTR "You can't drink that!"
.FUNCT V-DRINK-FROM,X
EQUAL? PRSO,WATER \?ELS5
CALL PERFORM,V?DRINK,PRSO
RTRUE
?ELS5: FSET? PRSO,VIALBIT \?ELS7
FSET? PRSO,OPENBIT \?ELS12
FIRST? PRSO \?ELS17
FIRST? PRSO >X /?KLU30
?KLU30: CALL PERFORM,V?DRINK,X
RTRUE
?ELS17: PRINTR "The vial is empty."
?ELS12: PRINTR "The vial is closed!"
?ELS7: PRINTR "How peculiar!"
.FUNCT V-DROP
CALL IDROP
ZERO? STACK /FALSE
EQUAL? HERE,COAL-BIN-ROOM,DIAL-ROOM \?ELS10
GETP PRSO,P?SIZE
LESS? STACK,20 \?ELS10
CALL BURIED-IN-COAL,STR?32
RSTACK
?ELS10: EQUAL? HERE,HAUNTED-HOUSE \?CND15
MOVE PRSO,DIAL
?CND15: PRINTR "Dropped."
.FUNCT V-EAT
PRINTR "Did they teach you to eat that in survival school?"
.FUNCT V-ENTER,VEHICLE
CALL FIND-IN,HERE,VEHBIT >VEHICLE
ZERO? VEHICLE /?ELS5
CALL PERFORM,V?BOARD,VEHICLE
RTRUE
?ELS5: CALL DO-WALK,P?IN
RSTACK
.FUNCT PRE-EXAMINE
ZERO? LIT \FALSE
ZERO? BLORTED \FALSE
CALL TOO-DARK
RSTACK
.FUNCT V-EXAMINE
GETP PRSO,P?TEXT
ZERO? STACK /?ELS5
CALL PERFORM,V?READ,PRSO
RTRUE
?ELS5: FSET? PRSO,DOORBIT \?ELS7
CALL V-LOOK-INSIDE
RSTACK
?ELS7: FSET? PRSO,CONTBIT \?ELS9
FSET? PRSO,OPENBIT \?ELS14
CALL V-LOOK-INSIDE
RSTACK
?ELS14: PRINTR "It's closed."
?ELS9: FSET? PRSO,ONBIT \?ELS20
PRINTI "Someone must have cast the frotz spell on"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR ", because it is glowing brightly."
?ELS20: PRINTI "You see nothing special about"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR "."
.FUNCT V-EXIT
FSET? PRSO,VEHBIT \?ELS5
CALL PERFORM,V?DISEMBARK,PRSO
RTRUE
?ELS5: CALL DO-WALK,P?OUT
RSTACK
.FUNCT V-EXORCISE
PRINTR "You can't do that with mere words!"
.FUNCT V-FILL
ZERO? PRSI \?ELS5
CALL GLOBAL-IN?,WATER,HERE
ZERO? STACK /?ELS10
CALL PERFORM,V?FILL,PRSO,WATER
RTRUE
?ELS10: PRINTR "There's nothing to fill it with."
?ELS5: PRINTR "Huh?"
.FUNCT V-FIND,WHERE=0,L
LOC PRSO >L
EQUAL? PRSO,HANDS \?ELS5
PRINTR "Within six feet of your head, assuming you haven't left that somewhere."
?ELS5: EQUAL? PRSO,ME \?ELS9
PRINTR "You're around here somewhere..."
?ELS9: IN? PRSO,PROTAGONIST \?ELS13
PRINTR "You have it!"
?ELS13: IN? PRSO,HERE /?THN18
EQUAL? PRSO,PSEUDO-OBJECT \?ELS17
?THN18: FSET? PRSO,ACTORBIT \?ELS22
PRINTI "He's"
JUMP ?CND20
?ELS22: PRINTI "It's"
?CND20: PRINTR " right in front of you."
?ELS17: IN? PRSO,LOCAL-GLOBALS \?ELS32
PRINTR "You're the magician!"
?ELS32: FSET? L,ACTORBIT \?ELS36
CALL VISIBLE?,L
ZERO? STACK /?ELS36
PRINTI "As far as you can tell,"
CALL ARTICLE,L,TRUE-VALUE
PRINTR " has it."
?ELS36: FSET? L,CONTBIT \?ELS44
CALL VISIBLE?,L
ZERO? STACK /?ELS44
PRINTI "It's in"
CALL ARTICLE,L,TRUE-VALUE
PRINTR "."
?ELS44: ZERO? WHERE /?ELS52
PRINTR "Beats me."
?ELS52: PRINTR "You'll have to do that yourself."
.FUNCT V-FIRST-LOOK
CALL DESCRIBE-ROOM
ZERO? STACK /FALSE
ZERO? SUPER-BRIEF \FALSE
CALL DESCRIBE-OBJECTS
RSTACK
.FUNCT V-FLY
ZERO? PRSO /?THN6
EQUAL? PRSO,ME \?ELS5
?THN6: ZERO? FLYING /?ELS12
PRINTR "You are!"
?ELS12: PRINTR "Perhaps a spell would be useful..."
?ELS5: EQUAL? PRSO,P-DIRECTION \?ELS21
CALL PERFORM,V?WALK,PRSO
RTRUE
?ELS21: PRINTI "You can't make"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR " fly!"
.FUNCT V-FOLLOW
IN? PRSO,HERE \?ELS5
PRINTI "But"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR " is right here!"
?ELS5: EQUAL? PRSO,TURRET \?ELS11
ZERO? MAILMAN-FOLLOW /?ELS11
CALL DO-WALK,P?SOUTH
RSTACK
?ELS11: CALL V-SIT
RSTACK
.FUNCT V-FORGET
PRINTR "You might also try not thinking about a purple hippopotamus!"
.FUNCT PRE-GIVE
CALL HELD?,PRSO
ZERO? STACK \?ELS5
PRINTR "That's easy for you to say since you don't even have it."
?ELS5: FSET? PRSO,SPELLBIT \FALSE
PRINTR "The spell is permanently inscribed in your spell book!"
.FUNCT V-GIVE
FSET? PRSI,ACTORBIT /?ELS5
PRINTI "You can't give"
CALL ARTICLE,PRSO
PRINTI " to"
CALL ARTICLE,PRSI
PRINTR "!"
?ELS5: PRINTI "Politely,"
CALL ARTICLE,PRSI,TRUE-VALUE
PRINTR " refuses your offer."
.FUNCT V-HELLO
ZERO? PRSO /?ELS5
FSET? PRSO,ACTORBIT \?ELS11
PRINTI "Silently,"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR " bows his head to you in greeting."
?ELS11: PRINTI "Only schizophrenics say ""Hello"" to"
CALL ARTICLE,PRSO
PRINTR "."
?ELS5: CALL PICK-ONE,HELLOS
PRINT STACK
CRLF
RTRUE
.FUNCT V-HELP
PRINTR "If you're really stuck, maps and InvisiClues hint booklets are available. If you have misplaced the order form that came in your package, send us a note at:
P.O. Box 620
Garden City, NY 11530
Dept. Z5
and we'll be happy to send you an order form."
.FUNCT V-HIDE
ZERO? PRSO \?ELS5
PRINTI "There's no place to hide here."
CRLF
RETURN 2
?ELS5: ZERO? PRSI /?ELS11
FSET? PRSI,ACTORBIT \?ELS11
PRINTI "Why hide it when"
CALL ARTICLE,PRSI,TRUE-VALUE
PRINTR " isn't interested in it."
?ELS11: ZERO? PRSI \FALSE
PRINTR "From what? From whom? Why?"
.FUNCT V-INFLATE
PRINTR "How can you inflate that?"
.FUNCT V-KICK
CALL HACK-HACK,STR?37
RSTACK
.FUNCT V-KILL
CALL IKILL,STR?38
RSTACK
.FUNCT IKILL,STR
ZERO? PRSO \?ELS3
PRINTI "There is nothing here to "
PRINT STR
PRINTI "."
CRLF
JUMP ?CND1
?ELS3: ZERO? PRSI \?CND1
CALL HELD?,KNIFE
ZERO? STACK /?CND1
SET 'PRSI,KNIFE
PRINTI "(with the "
PRINTD PRSI
PRINTI ")"
CRLF
CALL PERFORM,V?KILL,PRSO,PRSI
RTRUE
?CND1: FSET? PRSO,ACTORBIT /?ELS16
EQUAL? PRSO,BOA,HELLHOUND,DORN-BEAST /?ELS16
PRINTI "I've known strange people, but fighting"
CALL ARTICLE,PRSO
PRINTR "?"
?ELS16: ZERO? PRSI /?THN25
EQUAL? PRSI,HANDS \?ELS24
?THN25: PRINTI "Trying to "
PRINT STR
CALL ARTICLE,PRSO
PRINTR " with your bare hands is suicidal."
?ELS24: IN? PRSI,PROTAGONIST /?ELS32
PRINTI "You aren't even holding"
CALL ARTICLE,PRSI,TRUE-VALUE
PRINTR "."
?ELS32: FSET? PRSI,WEAPONBIT /?ELS38
PRINTI "Trying to "
PRINT STR
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTI " with"
CALL ARTICLE,PRSI
PRINTR " is suicidal."
?ELS38: PRINTR "You'd never survive the attack."
.FUNCT V-KNOCK
FSET? PRSO,DOORBIT \?ELS5
PRINTR "Nobody's home."
?ELS5: PRINTI "Why knock on"
CALL ARTICLE,PRSO
PRINTR "?"
.FUNCT V-KISS
PRINTR "I'd sooner kiss a pig."
.FUNCT V-LAMP-OFF
FSET? PRSO,LIGHTBIT \?ELS3
FSET? PRSO,ONBIT /?ELS6
PRINTR "It is already off."
?ELS6: FCLEAR PRSO,ONBIT
ZERO? LIT /?CND11
CALL LIT?,HERE >LIT
?CND11: PRINTI "Okay,"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTI " is now off."
CRLF
CALL LIT?,HERE >LIT
ZERO? LIT \TRUE
ZERO? BLORTED \TRUE
CALL NOW-BLACK
CRLF
RTRUE
?ELS3: FSET? PRSO,ONBIT \?ELS25
PRINTR "How? It's glowing by magic."
?ELS25: PRINTR "You can't turn that off."
.FUNCT V-LAMP-ON
FSET? PRSO,LIGHTBIT \?ELS3
FSET? PRSO,ONBIT \?ELS6
PRINTR "It is already on."
?ELS6: FSET PRSO,ONBIT
PRINTI "Okay,"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTI " is now on."
CRLF
ZERO? LIT \TRUE
ZERO? BLORTED \TRUE
CALL LIT?,HERE >LIT
CRLF
CALL V-LOOK
RTRUE
?ELS3: PRINTR "You can't turn that on."
.FUNCT V-LAND
ZERO? FLYING /?ELS5
PRINTR "You'll have to wait for the spell to wear off."
?ELS5: CALL LOOK-AROUND-YOU
RSTACK
.FUNCT V-LAUNCH
FSET? PRSO,VEHBIT \?ELS5
PRINTR "You can't launch that by saying ""launch""!"
?ELS5: PRINTR "Huh?"
.FUNCT V-LEAN-ON
PRINTR "Are you so very tired, then?"
.FUNCT V-LEAP
ZERO? FLYING /?ELS5
CALL WHILE-FLYING
RSTACK
?ELS5: ZERO? PRSO /?ELS8
IN? PRSO,HERE \?ELS14
CALL V-SKIP
RSTACK
?ELS14: PRINTR "That would be a good trick."
?ELS8: EQUAL? HERE,RIVER-BANK,DRAWBRIDGE,TOP-OF-FALLS /?THN21
EQUAL? HERE,TURRET,EDGE-OF-CHASM,BARE-PASSAGE /?THN21
EQUAL? HERE,TREE-BRANCH,GUN-EMPLACEMENT /?THN21
ZERO? RIDE-IN-PROGRESS /?ELS20
?THN21: CALL JIGS-UP,STR?39
RSTACK
?ELS20: EQUAL? HERE,LAGOON,DRAWBRIDGE /?THN25
EQUAL? HERE,COAL-BIN-ROOM,TOP-OF-CHUTE \?ELS24
?THN25: CALL DO-WALK,P?DOWN
RSTACK
?ELS24: CALL V-SKIP
RSTACK
.FUNCT V-LEAVE
CALL DO-WALK,P?OUT
RSTACK
.FUNCT V-LIE-DOWN
CALL PERFORM,V?SLEEP
RTRUE
.FUNCT V-LISTEN
PRINTI "At the moment,"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR " makes no sound."
.FUNCT V-LOCK
CALL PICK-ONE,YUKS
PRINT STACK
CRLF
RTRUE
.FUNCT V-LOOK
CALL DESCRIBE-ROOM,TRUE-VALUE
ZERO? STACK /FALSE
CALL DESCRIBE-OBJECTS,TRUE-VALUE
RSTACK
.FUNCT V-LOOK-BEHIND
PRINTI "There is nothing behind"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR "."
.FUNCT V-LOOK-DOWN
ZERO? LIT \?ELS5
ZERO? BLORTED \?ELS5
CALL TOO-DARK
RSTACK
?ELS5: EQUAL? PRSO,ROOMS \?ELS9
CALL PERFORM,V?EXAMINE,GROUND
RTRUE
?ELS9: CALL PERFORM,V?LOOK-INSIDE,PRSO
RTRUE
.FUNCT V-LOOK-INSIDE
FSET? PRSO,ACTORBIT \?ELS5
PRINTR "There is nothing special to be seen."
?ELS5: FSET? PRSO,SURFACEBIT \?ELS9
FIRST? PRSO \?ELS14
CALL PRINT-CONT,PRSO
RSTACK
?ELS14: PRINTI "There is nothing on"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR "."
?ELS9: FSET? PRSO,DOORBIT \?ELS22
PRINTI "All you can tell is that"
FSET? PRSO,OPENBIT \?ELS27
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTI " is open."
JUMP ?CND25
?ELS27: CALL ARTICLE,PRSO,TRUE-VALUE
PRINTI " is closed."
?CND25: CRLF
RTRUE
?ELS22: FSET? PRSO,SCROLLBIT \?ELS35
CALL PERFORM,V?READ,PRSO
RTRUE
?ELS35: FSET? PRSO,CONTBIT \?ELS37
LOC PROTAGONIST
EQUAL? PRSO,STACK \?ELS42
MOVE PROTAGONIST,ROOMS
FIRST? PRSO \?ELS45
CALL PRINT-CONT,PRSO
JUMP ?CND43
?ELS45: PRINTI "It's empty (not counting you)."
CRLF
?CND43: MOVE PROTAGONIST,PRSO
RTRUE
?ELS42: CALL SEE-INSIDE?,PRSO
ZERO? STACK /?ELS51
FIRST? PRSO \?ELS56
CALL PRINT-CONT,PRSO
RSTACK
?ELS56: PRINTR "It's empty."
?ELS51: FSET? PRSO,OPENBIT /?ELS62
FIRST? PRSO \?ELS62
CALL PERFORM,V?OPEN,PRSO
RTRUE
?ELS62: PRINTI "It seems that"
CALL ARTICLE,PRSO,TRUE-VALUE
PRINTR " is closed."
?ELS37: PRINTI "You can't look inside"
CALL ARTICLE,PRSO
PRINTR "."
.FUNCT V-LOOK-UNDER
CALL HELD?,PRSO
ZERO? STACK /?ELS5
PRINTI "You're "
FSET? PRSO,WEARBIT \?ELS10
PRINTI "wear"
JUMP ?CND8
?ELS10: PRINTI "hold"
?CND8: PRINTR "ing it!"
?ELS5: PRINTI "There is nothing but "
EQUAL? HERE,LAGOON-FLOOR \?ELS25
PRINTI "sand"
JUMP ?CND23
?ELS25: PRINTI "dust"
?CND23: PRINTR " there."
.FUNCT V-LOWER
CALL V-RAISE
RSTACK
.FUNCT V-LOWER-INTO
CALL V-RAISE
RSTACK
.FUNCT V-MELT
PRINTI "I'm not sure that"
CALL ARTICLE,PRSO
PRINTR " can be melted."
.FUNCT V-MOVE
CALL HELD?,PRSO
ZERO? STACK /?ELS5
PRINTR "Why juggle objects?"
?ELS5: FSET? PRSO,TAKEBIT \?ELS9
PRINTI "Moving"