-
Notifications
You must be signed in to change notification settings - Fork 8
/
verbs.zil
2552 lines (2304 loc) · 70.8 KB
/
verbs.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
"Generic VERBS file for
The ZORK Trilogy
started on 7/25/83 by SEM
-- GERMAN EDITION"
;"*** General note: Most of this file consists of dull 'verb defaults',
that is, responses you get if there's nothing interesting to respond
to what was typed. Most sentences are of a very general nature, which
must be maintained since you can plug in any (THING) into the sentence. ***"
;"Verb Functions for Game Commands"
<GLOBAL VERBOSE <>>
<GLOBAL SUPER-BRIEF <>>
<GDECL (VERBOSE SUPER-BRIEF) <OR ATOM FALSE>>
<ROUTINE V-VERBOSE ()
<SETG VERBOSE T>
<SETG SUPER-BRIEF <>>
<TELL "Maximum verbosity." CR>>
<ROUTINE V-BRIEF ()
<SETG VERBOSE <>>
<SETG SUPER-BRIEF <>>
<TELL "Brief descriptions." CR>>
<ROUTINE V-SUPER-BRIEF ()
<SETG SUPER-BRIEF T>
<TELL "Superbrief descriptions." CR>>
;"V-DIAGNOSE is in ACTIONS.ZIL"
<ROUTINE V-INVENTORY ()
<COND (<FIRST? ,WINNER> <PRINT-CONT ,WINNER>)
(T <TELL "Dein H%ande sind leer." CR>)>>
<ROUTINE FINISH ("AUX" WRD)
<V-SCORE>
<REPEAT ()
<CRLF>
;<TELL
"Would you like to restart the game from the beginning, restore a saved
game position, receive a hint, or end this session of the game?|
(Type RESTART, RESTORE, HINT, or QUIT):|
>">
<TELL
"M%ochtest du das Spiel neu anfangen, einen gespeicherten Zug wiederherstellen, einen Tip erhalten oder diese Spielrunde beenden?|
(Tippe: NEUBEGINN ,WIEDERHERSTELLEN, TIP oder AUFHOEREN:
>">
<PUTB ,P-INBUF 1 0>
<READ ,P-INBUF ,P-LEXV>
<SET WRD <GET ,P-LEXV ,P-LEXSTART>>
<COND (<EQUAL? .WRD ,W?NEUBEGINN>
<RESTART>
<TELL "Verfehlt." CR>)
(<EQUAL? .WRD ,W?WIEDERHERSTELLUNG>
<COND (<RESTORE>
<TELL "Ok." CR>)
(T
<TELL "Verfehlt." CR>)>)
(<EQUAL? .WRD ,W?AUFHOEREN>
<QUIT>)
(<EQUAL? .WRD ,W?TIPS ,W?TIP ,W?HILFE>
<V-HINT>
<AGAIN>)>>>
<ROUTINE V-QUIT ("AUX" SCOR)
<V-SCORE>
<TELL
"M%ochtest du aufh%oren zu spielen. (J wenn: Ja): ">
<COND (<YES?>
<QUIT>)
(ELSE
<TELL "Ok." CR>)>>
<ROUTINE V-RESTART ()
<V-SCORE T>
<TELL "M%ochtest du neu anfangen? (J wenn: Ja): ">
<COND (<YES?>
<TELL "Neuanfang." CR>
<RESTART>
<TELL "Verfehlt." CR>)>>
<ROUTINE V-RESTORE ()
<COND (<RESTORE>
<SETG OHERE <>>
<TELL "Ok." CR>
<V-FIRST-LOOK>)
(T
<TELL "Verfehlt." CR>)>>
<ROUTINE V-SAVE ("AUX" SV FLG)
<COND (<EQUAL? <SET SV <SAVE>> 1>
;<CHECK-REFRESH>
<TELL "Ok." CR>)
(<EQUAL? .SV 2>
<SETG OHERE <>>
<TELL "Ok." CR>
<CLEAR -1>
<INIT-STATUS-LINE>
<CRLF>
<V-LOOK>)
(T
<TELL "Verfehlt." CR>)>
<RTRUE>>
;<ROUTINE CHECK-REFRESH ()
<COND (<BTST <GET 0 8> 4>
<PUT 0 8 <BAND <GET 0 8> -5>>
<INIT-STATUS-LINE>)>>
;"V-SCORE is in ACTIONS.ZIL"
<ROUTINE V-SCRIPT ()
;<PUT 0 8 <BOR <GET 0 8> 1>>
<TELL "Hier beginnt eine gedruckte Kopie von: " CR CR>
<V-VERSION>
<DIROUT ,D-PRINTER-ON>
<RTRUE>>
<ROUTINE V-UNSCRIPT ()
<TELL "Hier endet eine gedruckte Kopie von: " CR CR>
<V-VERSION>
;<PUT 0 8 <BAND <GET 0 8> -2>>
<DIROUT ,D-PRINTER-OFF>
<RTRUE>>
<ROUTINE V-$ID ()
<TELL "Interpreter ">
<PRINTN <GETB 0 30>>
<TELL " Version ">
<PRINTC <GETB 0 31>>
<CRLF>
<RTRUE>>
<ROUTINE V-VERSION ("AUX" (CNT 17))
%<COND (<==? ,ZORK-NUMBER 1>
'<TELL "ZORK I: Das Gro%se Unterweltreich|
Infocom dialogf%ahig Prose - eine Phantasiegeschichte|
Copyright (c) 1981, 1982, 1983, 1984, 1985, 1986">)
(<==? ,ZORK-NUMBER 2>
'<TELL "ZORK II: The Wizard of Frobozz|
Infocom interactive fiction - a fantasy story|
Copyright (c) 1981, 1982, 1983, 1986">)
(<==? ,ZORK-NUMBER 3>
'<TELL "ZORK III: The Dungeon Master|
Infocom interactive fiction - a fantasy story|
Copyright 1982, 1983, 1984, 1986">)>
<TELL " Infocom, Inc.|
Alle Rechte vorbehalten. ZORK ist ein eingetragenes Markenzeichen|
der Infocom, Inc.|
BETA RELEASE # 1|
Ver%offenlichtung ">
<PRINTN <BAND <GET 0 1> *3777*>>
<TELL " / Seriennummer ">
<REPEAT ()
<COND (<G? <SET CNT <+ .CNT 1>> 23>
<RETURN>)
(T
<PRINTC <GETB 0 .CNT>>)>>
<TELL " / ">
<V-$ID>
<RTRUE>>
<ROUTINE V-VERIFY ()
<TELL "Diskette pr%ufen..." CR>
<COND (<VERIFY>
<TELL "Die Diskette ist in Ordnung." CR>)
(T
<TELL CR "** Diskettenfehler **" CR>)>>
<ROUTINE V-COMMAND-FILE ()
<DIRIN 1>
<RTRUE>>
<ROUTINE V-RANDOM ()
<COND (<NOT <EQUAL? ,PRSO ,INTNUM>>
<TELL "Illegal call to #RND." CR>)
(T
<RANDOM <- 0 ,P-NUMBER>>
<RTRUE>)>>
<ROUTINE V-RECORD ()
<DIROUT 4>
<RTRUE>>
<ROUTINE V-UNRECORD ()
<DIROUT -4>
<RTRUE>>
;"Real Verb Functions"
<ROUTINE V-ADVENT ()
<TELL "A hollow voice says %>Fool%<." CR>>
;<ROUTINE V-AGAIN ("AUX" (OBJ <>))
<COND (<EQUAL? ,L-PRSA ,V?WALK>
<DO-WALK ,L-PRSO>)
(T
<COND (,L-PRSO
<COND (<OR <NOT <LOC ,L-PRSO>>
<FSET? ,L-PRSO ,INVISIBLE>>
<SET OBJ ,L-PRSO>)>)>
<COND (,L-PRSI
<COND (<OR <NOT <LOC ,L-PRSI>>
<FSET? ,L-PRSI ,INVISIBLE>>
<SET OBJ ,L-PRSI>)>)>
<COND (<AND .OBJ
<NOT <EQUAL? .OBJ ;,PSEUDO-OBJECT ,ROOMS>>>
<TELL "You can't see " DER-ACC .OBJ " anymore." CR>
<RFATAL>)
(T
<PERFORM ,L-PRSA ,L-PRSO ,L-PRSI>)>)>>
<ROUTINE V-ALARM ()
<COND (<FSET? ,PRSO ,ACTORBIT>
<COND %<COND (<==? ,ZORK-NUMBER 1>
'(<L? <GETP ,PRSO ,P?STRENGTH> 0>
<TELL
DER-NOM-CAP ,PRSO " wird grob geweckt." CR>
<AWAKEN ,PRSO>))
(T
'(<NULL-F> <RTRUE>))>
(T
<TELL
DER-NOM-CAP ,PRSO " ist schon wach, falls du das noch nicht gemerkt
hast." CR>)>)
(<EQUAL? ,PRSO ,ROOMS>
<PERFORM ,V?ALARM ,ME>
<RTRUE>)
(T
<TELL DER-NOM-CAP ,PRSO " schl%aft nicht!" CR>)>>
<ROUTINE V-ANSWER ()
<TELL "Keiner wartet auf deine Antwort." CR>
<SETG P-CONT <>>
<SETG QUOTE-FLAG <>>
<RTRUE>>
<ROUTINE V-ATTACK ("AUX" X)
<COND (<NOT <FSET? ,PRSO ,ACTORBIT>>
<TELL
"Nur ein Verr%uckter w%urde " EIN-ACC ,PRSO " angreifen." CR>)
;"for 'greif troll an'"
(<AND <NOT ,PRSI>
<SET X <FIND-IN ,ADVENTURER ,WEAPONBIT>>>
<TELL "(mit " DER-DAT .X ")" CR CR>
<PERFORM ,V?ATTACK ,ADVENTURER .X>
<RTRUE>)
(<OR <NOT ,PRSI>
<EQUAL? ,PRSI ,HANDS>>
<TELL
EIN-ACC-CAP ,PRSO " mit den nackten H%anden anzugreifen ist Selbstmord." CR>)
(<NOT <IN? ,PRSI ,WINNER>>
<TELL
"Du h%alst noch nicht einmal " DER-ACC ,PRSI " in der Hand." CR>)
(<NOT <FSET? ,PRSI ,WEAPONBIT>>
;<TELL
"Trying to attack " DER-ACC ,PRSO " with " EIN-DAT ,PRSI " is suicidal." CR>
<TELL
EIN-ACC-CAP ,PRSO " mit " EIN-DAT ,PRSI " anzugreifen ist Selbstmord." CR>)
(T
%<COND (<==? ,ZORK-NUMBER 1>
'<HERO-BLOW>)
(T
'<TELL "You can't." CR>)>)>>
<ROUTINE V-BACK ()
<TELL "Sorry, my memory is poor. Please give a direction." CR>>
<ROUTINE V-BLAST ()
<TELL "You can't blast anything by using words." CR>>
<ROUTINE PRE-BOARD ("AUX" AV)
<SET AV <LOC ,WINNER>>
<COND %<COND (<==? ,ZORK-NUMBER 3>
'(<EQUAL? ,PRSO ,WATER-CHANNEL ,TM-SEAT ,LAKE>
<RFALSE>))
(T
'(<NULL-F> <RTRUE>))>
(<FSET? ,PRSO ,VEHBIT>
<COND (<NOT <IN? ,PRSO ,HERE>>
;<TELL
DER-NOM-CAP ,PRSO " must be on the ground to be boarded." CR>
<TELL
DER-NOM-CAP ,PRSO " mu%s auf der Erde sein, um bestiegen zu werden." CR>)
(<FSET? .AV ,VEHBIT>
<TELL "Du bist schon in " DER-DAT .AV "!" CR>)
(T
<RFALSE>)>)
(<EQUAL? ,PRSO ,WATER ,GLOBAL-WATER>
<PERFORM ,V?SWIM ,PRSO>
<RTRUE>)
(T
<TELL
"Du hast also eine Idee, wie man in " EIN-ACC ,PRSO " einsteigt?" CR>)>
<RFATAL>>
<ROUTINE V-BOARD ("AUX" AV)
;"Du bist jetzt in dem Zauberboot"
<TELL "Du bist jetzt in " DER-DAT ,PRSO "." CR>
<SETG OHERE <>>
<MOVE ,WINNER ,PRSO>
<APPLY <GETP ,PRSO ,P?ACTION> ,M-ENTER>
<RTRUE>>
;<ROUTINE V-BREATHE ()
<PERFORM ,V?INFLATE ,PRSO ,LUNGS>>
<ROUTINE V-BRUSH ()
<TELL "Wenn du willst, aber um Himmels Willen, warum?" CR>>
<ROUTINE TELL-NO-PRSI ()
<TELL "Du hast nicht gesagt mit was!" CR>>
<ROUTINE PRE-BURN ()
<COND (<NOT ,PRSI>
<TELL-NO-PRSI>)
(<FLAMING? ,PRSI>
<RFALSE>)
(T
<TELL "Mit " EIN-DAT ,PRSI " etwa?!?" CR>)>>
<ROUTINE V-BURN ()
<COND %<COND (<==? ,ZORK-NUMBER 2>
'(<EQUAL? <LOC ,PRSO> ,RECEPTACLE>
<BALLOON-BURN>
<RTRUE>))
(T
'(<NULL-F> <RFALSE>))>
(<FSET? ,PRSO ,BURNBIT>
<COND (<OR <IN? ,PRSO ,WINNER>
<IN? ,WINNER ,PRSO>>
<REMOVE-CAREFULLY ,PRSO>
<TELL
DER-NOM-CAP ,PRSO " f%angt Feuer. Dummerweise ">
<COND (<IN? ,WINNER ,PRSO>
<TELL "warst du gerade darin">)
(T <TELL "hast du ihn gerade festgehalten">)>
<TELL ".">)
(T
<REMOVE-CAREFULLY ,PRSO>
<TELL
DER-NOM-CAP ,PRSO " f%angt Feuer und verbrennt." CR>)>)
(T
<TELL "Du kannst " EIN-ACC ,PRSO " nicht verbrennen." CR>)>>
<ROUTINE V-CHOMP ()
<TELL "Preposterous!" CR>>
<ROUTINE V-CLIMB-DOWN () <V-CLIMB-UP ,P?RUNTER ,PRSO>>
<ROUTINE V-CLIMB-FOO ()
%<COND (<==? ,ZORK-NUMBER 3>
'<V-CLIMB-UP <COND (<EQUAL? ,PRSO ,ROPE ,GLOBAL-ROPE>
,P?RUNTER)
(T ,P?RAUF)>
T>)
(ELSE
'<V-CLIMB-UP ,P?RAUF ,PRSO>)>>
<ROUTINE V-CLIMB-ON ()
<COND (<FSET? ,PRSO ,VEHBIT>
%<COND (<==? ,ZORK-NUMBER 3>
'<V-CLIMB-UP ,P?RAUF T>)
(ELSE
'<PERFORM ,V?BOARD ,PRSO>)>
<RTRUE>)
(T
<TELL "Du kannst nicht auf " DER-ACC ,PRSO " steigen." CR>)>>
<ROUTINE V-CLIMB-UP ("OPTIONAL" (DIR ,P?RAUF) (OBJ <>) "AUX" X TX)
<COND (<AND .OBJ <NOT <EQUAL? ,PRSO ,ROOMS>>>
<SET OBJ ,PRSO>)>
<COND (<SET TX <GETPT ,HERE .DIR>>
<COND (.OBJ
<SET X <PTSIZE .TX>>
<COND (<OR <EQUAL? .X ,NEXIT>
<AND <EQUAL? .X ,CEXIT ,DEXIT ,UEXIT>
<NOT <GLOBAL-IN? ,PRSO <GET .TX 0>>>>>
<TELL DER-NOM-CAP .OBJ " f%uhrt nicht nach ">
;<COND (<NOT <EQUAL? .OBJ ,STAIRS>>
<TELL "es">)>
;<TELL "n't lead ">
<COND (<==? .DIR ,P?RAUF>
<TELL "oben">)
(T <TELL "unten">)>
<TELL "." CR>
<RTRUE>)>)>
<DO-WALK .DIR>
<RTRUE>)
(<AND .OBJ
<ZMEMQ ,W?WAND
<SET X <GETPT ,PRSO ,P?SYNONYM>>
<- </ <PTSIZE .X> 2> 1>>
;<ZMEMQ ,W?WALL
<SET X <GETPT ,PRSO ,P?SYNONYM>> <PTSIZE .X>>>
<TELL "Die W%ande raufzuklettern ist sinnlos." CR>)
(%<COND (<==? ,ZORK-NUMBER 1>
'<AND <NOT <EQUAL? ,HERE ,PATH>>
<EQUAL? .OBJ <> ,TREE>
<GLOBAL-IN? ,TREE ,HERE>>)
(ELSE '<NULL-F>)>
<TELL "There are no climbable trees here." CR>
<RTRUE>)
(<EQUAL? .OBJ <> ,ROOMS>
<TELL "In diese Richtung kannst du nicht gehen." CR>)
(T
<TELL "You can't do that!" CR>)>>
<ROUTINE V-CLOSE-OR-LOCK ()
<COND (<AND <OR <FSET? ,PRSO ,CONTBIT>
<FSET? ,PRSO ,DOORBIT>>
<NOT <FSET? ,PRSO ,SURFACEBIT>>>
<COND (<FSET? ,PRSO ,OPENBIT>
<PERFORM ,V?CLOSE ,PRSO>
<RTRUE>)
(T ;<dont need key to lock it grating HELD? ,KEY>
<PERFORM ,V?LOCK ,PRSO ,HANDS>
<RTRUE>)>)>
<PERFORM ,V?CLOSE ,PRSO>
<RTRUE>>
<ROUTINE V-CLOSE-OR-UNLOCK ()
<COND (<AND <OR <FSET? ,PRSO ,CONTBIT>
<FSET? ,PRSO ,DOORBIT>>
<NOT <FSET? ,PRSO ,SURFACEBIT>>>
<COND (<FSET? ,PRSO ,OPENBIT>
<PERFORM ,V?CLOSE ,PRSO>
<RTRUE>)
(T ;<dont need key to lock it grating HELD? ,KEY>
<PERFORM ,V?UNLOCK ,PRSO ,HANDS>
<RTRUE>)>)>
<PERFORM ,V?CLOSE ,PRSO>
<RTRUE>>
<ROUTINE V-CLOSE ()
<COND (<AND <NOT <FSET? ,PRSO ,CONTBIT>>
<NOT <FSET? ,PRSO ,DOORBIT>>>
<TELL
"Es ist ist einfach unm%oglich " EIN-DAT ,PRSO " zu schlie%sen." CR>)
(<AND <NOT <FSET? ,PRSO ,SURFACEBIT>>
<NOT <EQUAL? <GETP ,PRSO ,P?CAPACITY> 0>>>
<COND (<FSET? ,PRSO ,OPENBIT>
<FCLEAR ,PRSO ,OPENBIT>
<TELL "Geschlo%sen." CR>
<COND (<AND ,LIT <NOT <SETG LIT <LIT? ,HERE>>>>
<TELL "Es ist jetzt stockdunkel." CR>)>
<RTRUE>)
(T
<TELL
PRONOUN-NOM-CAP ,PRSO " ist schon geschlo%sen." CR>)>)
(<FSET? ,PRSO ,DOORBIT>
<COND (<FSET? ,PRSO ,OPENBIT>
<FCLEAR ,PRSO ,OPENBIT>
<TELL DER-NOM-CAP ,PRSO " ist jetzt geschlo%sen." CR>)
(T
<TELL PRONOUN-NOM-CAP ,PRSO " ist schon geschlo%sen." CR>)>)
(T
<TELL "Du kannst das da nicht schlie%sen." CR>)>>
<ROUTINE V-COMMAND ()
<COND (<FSET? ,PRSO ,ACTORBIT>
<TELL DER-NOM-CAP ,PRSO " reagiert nicht." CR>)
(T
<TELL "Damit kann man nicht sprechen." CR>)>>
<ROUTINE V-COUNT ()
;<COND (<EQUAL? ,PRSO ,BLESSINGS>
<TELL "Vergi%s nicht, du spielst Zork." CR>)>
<TELL "Du bist verr%uckt." CR>>
<ROUTINE V-CROSS ()
<TELL "Hier kannst du nicht %uberqueren." CR>>
<ROUTINE V-CURSES ()
<COND (,PRSO
<COND (<FSET? ,PRSO ,ACTORBIT>
<TELL
"Auf Unh%oflichkeiten dieser Art pflegen wir nicht zu reagieren." CR>)
(T
<TELL "Was?!" CR>)>)
(T
<TELL
"Wir benutzen gew%ohnlich eine gepflegtere Sprache." CR>)>>
<ROUTINE V-CUT ()
<COND (<FSET? ,PRSO ,ACTORBIT>
<PERFORM ,V?ATTACK ,PRSO ,PRSI>)
(<AND <FSET? ,PRSO ,BURNBIT>
<FSET? ,PRSI ,WEAPONBIT>>
<COND (<IN? ,WINNER ,PRSO>
;<TELL
"Not a bright idea, especially since you're in " PRONOUN-ACC ,PRSO "." CR>
<TELL
"Nicht die kl%ugste Idee, denn du bist drin." CR>
<RTRUE>)>
<REMOVE-CAREFULLY ,PRSO>
<TELL
"Nicht die kl%ugste Idee, denn du bist drin. Deine raffinierte Navigation zermalmt " DER-ACC ,PRSO " in unz%ahlbare Splitter, die wegfliegen." CR>)
(<NOT <FSET? ,PRSI ,WEAPONBIT>>
;<TELL
"The %>cutting edge%< of " D ,PRSI " is hardly adequate." CR>
<TELL "Die scharfen Kanten haben keinen Schneid." CR>)
(T
<TELL
"Eine eigenartige Idee, " DER-ACC ,PRSO " zu zerschneiden." CR>)>>
<ROUTINE V-DEFLATE ()
<COND (<AND <PRSO? ,LUNGS> ;"air"
<ACCESSIBLE? ,INFLATED-BOAT>>
<PERFORM ,V?DEFLATE ,INFLATED-BOAT>
<RTRUE>)
(T
<TELL "So ein Quatsch!" CR>)>>
<ROUTINE V-DIG ()
<COND (<NOT ,PRSI>
<SETG PRSI ,HANDS>)>
%<COND (<==? ,ZORK-NUMBER 1>
'<COND (<EQUAL? ,PRSI ,SHOVEL>
<TELL "Hier gibt es wahrlich keinen Grund zum Graben." CR>
<RTRUE>)>)
(ELSE T)>
<COND (<FSET? ,PRSI ,TOOLBIT>
<TELL
"Mit " DER-DAT ,PRSI " zu graben ist langsam und m%uhsam." CR>)
(T
<TELL "Mit " EIN-DAT ,PRSI " zu graben ist bl%odsinnig." CR>)>>
<ROUTINE V-DIG-WITH ()
<PERFORM ,V?DIG ,GROUND ,SHOVEL>
<RTRUE>>
<ROUTINE V-DISEMBARK ()
<COND (<AND <EQUAL? ,PRSO ,ROOMS>
<FSET? <LOC ,WINNER> ,VEHBIT>>
<PERFORM ,V?DISEMBARK <LOC ,WINNER>>
<RTRUE>)
(<NOT <EQUAL? <LOC ,WINNER> ,PRSO>>
<TELL "Da bist du doch gar nicht drin!" CR>
<RFATAL>)
(<FSET? ,HERE ,RLANDBIT>
<SETG OHERE <>>
<TELL "Du stehst wieder auf eigenen F%u%sen." CR>
<MOVE ,WINNER ,HERE>)
(T
<TELL
"Du begreifst, da%s es deinen Tod bedeuten w%urde, wenn du hier ausstiegest."
CR>
<RFATAL>)>>
<ROUTINE V-DISENCHANT ()
%<COND (<==? ,ZORK-NUMBER 2>
'<COND (<NOT <IN? ,PRSO ,HERE>>
<RTRUE>)
(<OR <EQUAL? ,SPELL-USED ,W?FEEBLE ,W?FUMBLE ,W?FEAR>
<EQUAL? ,SPELL-USED ,W?FREEZE ,W?FALL ,W?FERMENT>
<EQUAL? ,SPELL-USED ,W?FIERCE ,W?FENCE ,W?FANTASIZE>>
<COND (<FSET? ,PRSO ,ACTORBIT>
<COND (<EQUAL? ,SPELL-USED ,W?FEEBLE>
<TELL
DER-NOM-CAP ,PRSO " seems stronger now." CR>)
(<EQUAL? ,SPELL-USED ,W?FUMBLE>
<TELL
DER-NOM-CAP ,PRSO " no longer appears clumsy." CR>)
(<EQUAL? ,SPELL-USED ,W?FEAR>
<TELL
DER-NOM-CAP ,PRSO " no longer appears afraid." CR>)
(<EQUAL? ,SPELL-USED ,W?FREEZE>
<TELL
DER-NOM-CAP ,PRSO " moves again." CR>)
(<EQUAL? ,SPELL-USED ,W?FERMENT>
<TELL
DER-NOM-CAP ,PRSO " stops swaying." CR>)
(<EQUAL? ,SPELL-USED ,W?FIERCE>
<TELL
DER-NOM-CAP ,PRSO " appears more peaceful." CR>)>)>)
(<EQUAL? ,SPELL-USED ,W?FLOAT>
<TELL
DER-NOM-CAP ,PRSO " sinks to the ground." CR>)
(<EQUAL? ,SPELL-USED ,W?FUDGE>
<TELL "The sweet smell has dispersed." CR>)>)
(T
'<TELL "Hier passiert garnichts." CR>)>>
<ROUTINE V-DRINK ()
<V-EAT>>
<ROUTINE V-DRINK-FROM ()
<TELL "Wie eigenartig!" CR>>
<ROUTINE PRE-DROP ()
<COND (<EQUAL? ,PRSO <LOC ,WINNER>>
<PERFORM ,V?DISEMBARK ,PRSO>
<RTRUE>)>>
<ROUTINE V-DROP ()
<COND (<IDROP>
<TELL "Fallen gelassen." CR>)>>
<ROUTINE V-EAT ("AUX" (EAT? <>) (DRINK? <>) (NOBJ <>))
<COND (<SET EAT? <FSET? ,PRSO ,FOODBIT>>
<COND (<AND <NOT <IN? ,PRSO ,WINNER>>
<NOT <IN? <LOC ,PRSO> ,WINNER>>>
<TELL "Das hast du doch gar nicht in der Hand." CR>)
(<VERB? DRINK>
<TELL
"Wie in aller Welt willst du " DER-ACC ,PRSO " denn trinken?">)
(T
<TELL
"Es tut gut, l%oscht jeglichen Durst, den du eventuell versp%urt hast.">
<REMOVE-CAREFULLY ,PRSO>)>
<CRLF>)
(<FSET? ,PRSO ,DRINKBIT>
<SET DRINK? T>
<SET NOBJ <LOC ,PRSO>>
<COND (<OR <IN? ,PRSO ,GLOBAL-OBJECTS>
<GLOBAL-IN? ,GLOBAL-WATER ,HERE>
;<EQUAL? ,PRSO ,PSEUDO-OBJECT>>
<HIT-SPOT>)
(<OR <NOT .NOBJ>
<NOT <ACCESSIBLE? .NOBJ>>>
<TELL "Du hast doch garnichts zu trinken." CR>)
(<AND <ACCESSIBLE? .NOBJ>
<NOT <IN? .NOBJ ,WINNER>>>
<TELL
"Erst mu%st du doch " DER-ACC .NOBJ " in der Hand halten." CR>
;"Du mu%st die Gla%sflasche erst in der Hand halten.")
(<NOT <FSET? .NOBJ ,OPENBIT>>
<TELL
"Erst mu%st du doch " DER-ACC .NOBJ " %offnen." CR>)
(T
<HIT-SPOT>)>)
(<NOT <OR .EAT? .DRINK?>>
<TELL
"Ich glaube nicht, da%s dir " DER-NOM ,PRSO " bekommt.">)>>
<ROUTINE HIT-SPOT ()
<COND (<AND <EQUAL? ,PRSO ,WATER>
<NOT <GLOBAL-IN? ,GLOBAL-WATER ,HERE>>>
<REMOVE-CAREFULLY ,PRSO>)>
<TELL
"Es tut gut, l%oscht jeglichen Durst, den du eventuell versp%urt hast." CR>>
<ROUTINE V-ECHO ("AUX" LST MAX (ECH 0) CNT)
#DECL ((LST) <PRIMTYPE VECTOR> (MAX CNT ECH) FIX)
%<COND (<==? ,ZORK-NUMBER 1>
'<COND (<G? <GET ;B ,P-LEXV ,P-LEXWORDS> 0>
<SET LST <REST
,P-LEXV
<* <GET ,P-LEXV ,P-LEXWORDS> ,P-WORDLEN>>>
<SET MAX <- <+ <GET ;B .LST 0> <GET ;B .LST 1>> 1>>
<REPEAT ()
<COND (<G? <SET ECH <+ .ECH 1>> 2>
<TELL "..." CR>
<RETURN>)
(T
<SET CNT <- <GET ;B .LST 1> 1>>
<REPEAT ()
<COND (<G? <SET CNT <+ .CNT 1>> .MAX>
<RETURN>)
(T
<PRINTC <GET ;B ,P-INBUF .CNT>>)>>
<TELL " ">)>>)
(T <TELL "Echo Echo ..." CR>)>)
(T
'<TELL "Echo Echo ..." CR>)>>
<ROUTINE V-ENCHANT ()
%<COND (<==? ,ZORK-NUMBER 2>
'<COND (,WAND-ON <SETG SPELL-VICTIM ,WAND-ON>)>)
(T
'<NULL-F>)>
%<COND (<==? ,ZORK-NUMBER 2>
'<COND (,SPELL-VICTIM
<COND (<NOT ,SPELL-USED>
<TELL "You must be more specific." CR>
<RTRUE>)>
<COND (<OR <EQUAL? ,SPELL-USED ,W?FEEBLE ,W?FUMBLE ,W?FEAR>
<EQUAL? ,SPELL-USED ,W?FREEZE ,W?FALL ,W?FERMENT>
<EQUAL? ,SPELL-USED ,W?FIERCE ,W?FENCE ,W?FANTASIZE>>
<COND (<FSET? ,PRSO ,ACTORBIT>
<TELL
"The wand stops glowing, but there is no other obvious effect." CR>)
(T
<TELL
"That might have done something, but it's hard to tell with " EIN-DAT ,PRSO "." CR>)>)
;(<EQUAL? ,SPELL-USED ,W?FIREPROOF>
<RTRUE>)
(<EQUAL? ,SPELL-USED ,W?FUDGE>
<TELL
"A strong odor of chocolate permeates the room." CR>)
(<EQUAL? ,SPELL-USED ,W?FLUORESCE>
<FSET ,PRSO ,LIGHTBIT>
<FSET ,PRSO ,ONBIT>
<SETG LIT T>
<TELL
DER-NOM-CAP ,PRSO " begins to glow." CR>)
(<EQUAL? ,SPELL-USED ,W?FILCH>
<SETG SPELL-HANDLED? T>
<COND (<FSET? ,PRSO ,TAKEBIT>
<MOVE ,PRSO ,WINNER>
<SCORE-OBJ ,PRSO>
<TELL "Filched!" CR>)
(ELSE
<TELL "You can't filch " DER-ACC ,PRSO "!" CR>)>)
(<AND <EQUAL? ,SPELL-USED ,W?FLOAT>
<FSET? ,PRSO ,TAKEBIT>>
<COND (<AND <EQUAL? ,SPELL-VICTIM ,COLLAR>
<IN? ,COLLAR ,CERBERUS>>
<SETG SPELL-VICTIM ,CERBERUS>)>
<TELL
DER-NOM-CAP ,PRSO " floats serenely in midair." CR>)
(<AND <EQUAL? ,SPELL-USED ,W?FRY>
<FSET? ,PRSO ,TAKEBIT>>
<SETG SPELL-HANDLED? T>
<REMOVE-CAREFULLY ,PRSO>
<TELL DER-NOM-CAP ,PRSO " goes up in a puff of smoke." CR>)
(ELSE
<SETG SPELL-VICTIM <>>
<TELL
"The wand stops glowing, but there is no other apparent effect." CR>)>)
(ELSE
<SETG SPELL-VICTIM <>>
<TELL "Hier passiert garnichts." CR>)>)
(T
'<V-DISENCHANT>)>>
<ROUTINE REMOVE-CAREFULLY (OBJ "AUX" OLIT)
<COND (<EQUAL? .OBJ ,P-IT-OBJECT>
<SETG P-IT-OBJECT <>>)>
<COND (<EQUAL? .OBJ ,P-HER-OBJECT>
<SETG P-HER-OBJECT <>>)>
<COND (<EQUAL? .OBJ ,P-HIM-OBJECT>
<SETG P-HIM-OBJECT <>>)>
<SET OLIT ,LIT>
<REMOVE .OBJ>
<SETG LIT <LIT? ,HERE>>
<COND (<AND .OLIT <NOT <EQUAL? .OLIT ,LIT>>>
<TELL "Du tappst im Dunkeln." CR>)>
T>
<ROUTINE V-ENTER ()
<DO-WALK ,P?HINEIN>>
<ROUTINE V-EXAMINE ()
<COND (<GETP ,PRSO ,P?TEXT>
<TELL <GETP ,PRSO ,P?TEXT> CR>)
(<OR <FSET? ,PRSO ,CONTBIT>
<FSET? ,PRSO ,DOORBIT>>
<V-LOOK-INSIDE>)
(T
<TELL "Da ist nichts Besonderes an " DER-ACC ,PRSO "." CR>)>>
<ROUTINE V-EXIT ()
<COND (<AND <EQUAL? ,PRSO <> ,ROOMS>
<FSET? <LOC ,WINNER> ,VEHBIT>>
<PERFORM ,V?DISEMBARK <LOC ,WINNER>>
<RTRUE>)
(<AND ,PRSO <IN? ,WINNER ,PRSO>>
<PERFORM ,V?DISEMBARK ,PRSO>
<RTRUE>)
(ELSE
<DO-WALK ,P?RAUS>)>>
<ROUTINE V-EXORCISE ()
<TELL "Was f%ur eine Schnappsidee!" CR>>
<ROUTINE PRE-FILL ("AUX" TX)
<COND (<NOT ,PRSI>
<SET TX <GETPT ,HERE ,P?GLOBAL>>
<COND (<AND .TX <ZMEMQ ,GLOBAL-WATER .TX <- </ <PTSIZE .TX> 2> 1>>>
<PERFORM ,V?FILL ,PRSO ,GLOBAL-WATER>
<RTRUE>)
(<IN? ,WATER <LOC ,WINNER>>
<PERFORM ,V?FILL ,PRSO ,WATER>
<RTRUE>)
(T
<TELL
"Da ist nichts, mit dem man " DER-ACC ,PRSO " f%ullen k%onnte." CR>
<RTRUE>)>)>
<COND (<EQUAL? ,PRSI ,WATER>
<RFALSE>)
(<NOT <EQUAL? ,PRSI ,GLOBAL-WATER>>
<PERFORM ,V?PUT ,PRSI ,PRSO>
<RTRUE>)>>
<ROUTINE V-FILL ()
<COND (<NOT ,PRSI>
<COND (<GLOBAL-IN? ,GLOBAL-WATER ,HERE>
<PERFORM ,V?FILL ,PRSO ,GLOBAL-WATER>
<RTRUE>)
(<IN? ,WATER <LOC ,WINNER>>
<PERFORM ,V?FILL ,PRSO ,WATER>
<RTRUE>)
(T
<TELL
"Da ist nichts, mit dem man " DER-ACC ,PRSO " f%ullen k%onnte." CR>)>)
(T
<TELL "You may know how to do that, but I don't." CR>)>>
<ROUTINE V-FIND ("AUX" L)
<SET L <LOC ,PRSO>>
<COND (<EQUAL? ,PRSO ,HANDS ,LUNGS>
<TELL
"Within six feet of your head, assuming you haven't left that
somewhere." CR>)
(<EQUAL? ,PRSO ,ME>
<TELL "Du bist doch hier irgendwo in der N%ahe." CR>)
(<EQUAL? .L ,GLOBAL-OBJECTS>
<TELL "Du findest " PRONOUN-ACC ,PRSO "." CR>)
(<IN? ,PRSO ,WINNER>
<TELL "Du hast " PRONOUN-ACC ,PRSO "." CR>)
(<OR <IN? ,PRSO ,HERE>
<GLOBAL-IN? ,PRSO ,HERE>
;<EQUAL? ,PRSO ,PSEUDO-OBJECT>>
<TELL PRONOUN-NOM-CAP ,PRSO " ist hier." CR>)
(<FSET? .L ,ACTORBIT>
<TELL DER-NOM-CAP .L " hat " PRONOUN-ACC ,PRSO "." CR>)
(<FSET? .L ,SURFACEBIT>
<TELL PRONOUN-NOM-CAP ,PRSO " ist auf " DER-DAT .L "." CR>)
(<FSET? .L ,CONTBIT>
<TELL PRONOUN-NOM-CAP ,PRSO " in " DER-DAT .L "." CR>)
(T
<TELL "Da bist du bei mir an der falschen Adresse." CR>)>>
<ROUTINE V-FOLLOW ()
<TELL "Du bist narrisch!" CR>>
<ROUTINE V-FROBOZZ ()
<TELL
"Die FROBOZZ FIRMA gr%undete, besitzt und leitet diesen Kerker." CR>>
<ROUTINE PRE-GIVE ()
<COND (<NOT <HELD? ,PRSO>>
<TELL
"Das kannst du leicht sagen, denn du besitzt ja nicht einmal "
DER-ACC ,PRSO "." CR>)>>
<ROUTINE V-GIVE ()
<COND (<NOT <FSET? ,PRSI ,ACTORBIT>>
;<TELL "You can't give " EIN-ACC ,PRSO " to " EIN-DAT ,PRSI "!" CR>
<TELL
"Du kannst " EIN-DAT ,PRSI " doch nicht " EIN-ACC ,PRSO " geben!">)
(T
<TELL
DER-NOM-CAP ,PRSI " lehnt " PRONOUN-ACC ,PRSI " h%oflich ab." CR>)>>
<ROUTINE V-HATCH ()
<TELL "Bizarre!" CR>>
<GLOBAL HS 0> ;"counts occurences of HELLO, SAILOR"
<ROUTINE V-HELLO ()
<COND (<AND ,PRSO
<NOT <PRSO? ,ROOMS>>>
<COND (<FSET? ,PRSO ,ACTORBIT>
<TELL
DER-NOM-CAP ,PRSO " gr%u%st dich mit einem Kopfnicken." CR>)
(T
<TELL
"Es ist eine alte Suppe, da%s nur Verr%uckte zu " EIN-DAT ,PRSO ":
%>Guten Tag%< sagen." CR>)>)
(T
<TELL <PICK-ONE ,HELLOS> CR>)>>
<ROUTINE V-HINTS-OFF ()
<TELL "Tips sind f%uer diese Runde abgestellt." CR>
<SETG HINTS-OFF T>>
<ROUTINE V-INCANT ()
%<COND (<==? ,ZORK-NUMBER 2>
'<COND (,SPELL-USED
<TELL "Hier passiert garnichts." CR>)
(,WAND-ON
<SETG SPELL-VICTIM ,WAND-ON>
<SETG SPELL-USED <GET ,P-LEXV ,P-CONT>>
<TELL "The wand glows very brightly for a moment." CR>
<ENABLE <QUEUE I-SPELL <+ 10 <RANDOM 10>>>>
<SETG WAND-ON <>>
<PERFORM ,V?ENCHANT ,SPELL-VICTIM>)
(T
<TELL
"The incantation echoes back faintly, but nothing else happens." CR>)>)
(T
'<TELL
"The incantation echoes back faintly, but nothing else happens." CR>)>
<SETG QUOTE-FLAG <>>
<SETG P-CONT <>>
<RTRUE>>
<ROUTINE V-INFLATE ()
<COND (<AND <ACCESSIBLE? ,PUMP>
<OR <PRSO? ,INFLATED-BOAT>
<PRSO? ,INFLATABLE-BOAT>
<PRSO? ,PUNCTURED-BOAT>>>
<TELL "(mit " DER-DAT ,PUMP ")" CR CR>
<PERFORM ,V?INFLATE ,PRSO ,PUMP>
<RTRUE>)
(T
<TELL "Wie willst du das denn aufblasen?" CR>)>>
<ROUTINE V-KICK ()
<TELL
DER-ACC-CAP ,PRSO " mit dem Fu%s treten, scheint nicht zu funktionieren." CR>>
<ROUTINE V-KISS ()
<TELL
"Da w%urdest du lieber einen Ochs zwischen den H%ornern k%ussen." CR>>
<ROUTINE V-KNOCK ()
<COND (<FSET? ,PRSO ,DOORBIT>
<TELL "Niemand zu Hause." CR>)
(T
<TELL "Warum an " EIN-ACC ,PRSO " klopfen?" CR>)>>
<ROUTINE V-LAMP-OFF ()
<COND (<FSET? ,PRSO ,LIGHTBIT>
<COND (<NOT <FSET? ,PRSO ,ONBIT>>
<TELL PRONOUN-NOM-CAP ,PRSO " ist schon aus." CR>)
(T
<FCLEAR ,PRSO ,ONBIT>
<COND (,LIT
<SETG LIT <LIT? ,HERE>>)>
<TELL "O.K. " DER-NOM ,PRSO " ist jetzt aus." CR>
<COND (<NOT ,LIT>
<TELL "Es ist jetzt stockdunkel." CR>)>)>)
(T
<TELL "Das kannst du nicht ausmachen." CR>)>
<RTRUE>>
<ROUTINE V-LAMP-ON ()
<COND (<FSET? ,PRSO ,LIGHTBIT>
<COND (<FSET? ,PRSO ,ONBIT>
<TELL PRONOUN-NOM-CAP ,PRSO " ist schon an." CR>)
(T
<FSET ,PRSO ,ONBIT>
<TELL DER-NOM-CAP ,PRSO " ist nun an." CR>
<COND (<NOT ,LIT>
<SETG LIT <LIT? ,HERE>>
<CRLF>
<V-LOOK>)>)>)
(<FSET? ,PRSO ,BURNBIT>
<TELL
"Wenn du " DER-ACC ,PRSO " verbrennen willst, mu%st du's sagen." CR>)
(T
<TELL "Das kannst du nicht anmachen." CR>)>
<RTRUE>>
<ROUTINE V-LAUNCH ()
<COND (<FSET? ,PRSO ,VEHBIT>
;<TELL "You can't launch that by saying %>launch%<!" CR>
<TELL
"Du kannst das nicht absto%sen, in dem du %>Absto%sen%<
sagst.">)
(T
<TELL "Das ist ziemlich absurd." CR>)>>
<ROUTINE V-LEAN-ON ()
<TELL "Bist du m%ude?" CR>>
<ROUTINE V-LEAP ("AUX" TX S)
<COND (,PRSO
<COND (<IN? ,PRSO ,HERE>
<COND (<FSET? ,PRSO ,ACTORBIT>
<TELL
DER-NOM-CAP ,PRSO " ist zu gro%s, um %uber ihn zu springen." CR>)
(T
<V-SKIP>)>)
(T
<TELL "Das w%are ein toller Trick." CR>)>)
(<SET TX <GETPT ,HERE ,P?RUNTER>>
<SET S <PTSIZE .TX>>
<COND (<OR <EQUAL? .S 3 ;2> ;NEXIT
<AND <EQUAL? .S 5 ;4> ;CEXIT
<NOT <VALUE <GETB ;B .TX 1>>>>>
<TELL
"Das war nicht der sicherste Platz f%ur den Absprung." CR>
<JIGS-UP <PICK-ONE ,JUMPLOSS>>)
%<COND (<==? ,ZORK-NUMBER 1>
'(<EQUAL? ,HERE ,UP-A-TREE>
<TELL
"In einem Anflug von ungew%ohnlicher Waghalsigkeit, hast du es geschafft, auf beiden F%u%sen zu landen, ohne dich umzubringen." CR CR>
<DO-WALK ,P?RUNTER>
<RTRUE>))
(T '(<NULL-F> T))>
(T
<V-SKIP>)>)
(T
<V-SKIP>)>>
<GLOBAL JUMPLOSS
<LTABLE 0
"Du h%attest erst mal gucken sollen, ehe du gesprungen bist."
"Im Film w%urde jetzt dein ganzes Leben schnell noch mal an dir vorbeispielen. Hiiiilfe.">>
<ROUTINE V-LEAVE ()
<COND (<PRSO? ,ROOMS>
<DO-WALK ,P?RAUS>)