-
Notifications
You must be signed in to change notification settings - Fork 27
/
constants.zil
1749 lines (1464 loc) · 45.7 KB
/
constants.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
"CONSTANTS for BEYOND ZORK:
Copyright (C)1987 Infocom, Inc. All rights reserved."
<CONSTANT EOL 13>
<CONSTANT LF 10>
<CONSTANT SP 32>
<CONSTANT EXCLAM 33>
<CONSTANT QUOTATION 34>
<CONSTANT PER 46>
<CONSTANT COMMA 44>
<CONSTANT DEC-20 1>
<CONSTANT APPLE-2E 2>
<CONSTANT MACINTOSH 3>
<CONSTANT AMIGA 4>
<CONSTANT ATARI-ST 5>
<CONSTANT IBM 6>
<CONSTANT C128 7>
<CONSTANT C64 8>
<CONSTANT APPLE-2C 9>
<CONSTANT APPLE-2GS 10>
<CONSTANT MACHINES
<PLTABLE "DEC-20"
"Apple //e"
"Macintosh"
"Amiga"
"Atari ST"
"IBM/MS-DOS"
"Commodore 128"
"C64"
"Apple //c"
"Apple //gs"
"Tandy Color Computer">>
<CONSTANT F-OLD 0>
<CONSTANT F-DEFAULT 1>
<CONSTANT F-PICTURES 2>
<CONSTANT F-NEWFONT 3>
<CONSTANT S-TEXT 0>
<CONSTANT S-WINDOW 1>
<CONSTANT S-BEEP 1>
<CONSTANT S-BOOP 2>
<CONSTANT H-NORMAL 0>
<CONSTANT H-INVERSE 1>
<CONSTANT H-BOLD 2>
<CONSTANT H-ITALIC 4>
<CONSTANT H-MONO 8>
<CONSTANT D-SCREEN-ON 1>
<CONSTANT D-SCREEN-OFF -1>
<CONSTANT D-PRINTER-ON 2>
<CONSTANT D-PRINTER-OFF -2>
<CONSTANT D-TABLE-ON 3>
<CONSTANT D-TABLE-OFF -3>
<CONSTANT D-RECORD-ON 4>
<CONSTANT D-RECORD-OFF -4>
"Color constants"
<CONSTANT C-SAME 0>
<CONSTANT C-DEFAULT 1>
<CONSTANT C-BLACK 2>
<CONSTANT C-RED 3>
<CONSTANT C-GREEN 4>
<CONSTANT C-YELLOW 5>
<CONSTANT C-BLUE 6>
<CONSTANT C-MAGENTA 7>
<CONSTANT C-CYAN 8>
<CONSTANT C-WHITE 9>
<CONSTANT BWWW <PTABLE (BYTE) C-BLUE C-WHITE C-WHITE C-WHITE>>
<CONSTANT BWCR <PTABLE (BYTE) C-BLACK C-WHITE C-CYAN C-RED>>
<CONSTANT WBBB <PTABLE (BYTE) C-WHITE C-BLACK C-BLACK C-BLACK>>
<CONSTANT DWWW <PTABLE (BYTE) C-BLACK C-WHITE C-WHITE C-WHITE>>
<CONSTANT DEFCOLORS
<PTABLE (BYTE) C-DEFAULT C-DEFAULT C-DEFAULT C-DEFAULT>>
<CONSTANT ST-MONO <PLTABLE DWWW WBBB>>
<CONSTANT MACHINE-COLORS
<PLTABLE
0 ; "DEC-20"
0 ; "Apple //e"
0 ; "Macintosh"
<PLTABLE
BWCR DWWW BWWW WBBB> ; "Amiga"
<PLTABLE
BWCR DWWW BWWW WBBB> ; "Atari ST"
<PLTABLE
DEFCOLORS
BWWW
<PTABLE (BYTE) C-BLUE C-WHITE C-WHITE C-GREEN>
BWCR DWWW WBBB> ; "IBM"
<PLTABLE
<PTABLE (BYTE) C-BLACK C-WHITE C-YELLOW C-CYAN>
DWWW WBBB BWWW> ; "C128"
0 ; "C64"
0 ; "Apple //c"
<PLTABLE
BWCR DWWW BWWW WBBB> ; "Apple //gs"
>>
"Apple //c MouseText characters."
<CONSTANT APPLE-LEFT 95>
<CONSTANT APPLE-RIGHT 90>
<CONSTANT APPLE-HORZ 76>
"IBM graphics chars."
<CONSTANT IBM-TRC 191>
<CONSTANT IBM-BLC 192>
<CONSTANT IBM-BRC 217>
<CONSTANT IBM-TLC 218>
<CONSTANT IBM-HORZ 196>
<CONSTANT IBM-VERT 179>
<CONSTANT DIR-HACKS <PTABLE -7 -6 1 8 7 6 -1 -8>>
<CONSTANT I-NORTH 0>
<CONSTANT I-NE 1>
<CONSTANT I-EAST 2>
<CONSTANT I-SE 3>
<CONSTANT I-SOUTH 4>
<CONSTANT I-SW 5>
<CONSTANT I-WEST 6>
<CONSTANT I-NW 7>
<CONSTANT I-U 8>
<CONSTANT I-D 9>
<CONSTANT DIR-NAMES
<PTABLE <VOC "NORTH" <>> <VOC "NORTHEAST" <>>
<VOC "EAST" <>> <VOC "SOUTHEAST" <>>
<VOC "SOUTH" <>> <VOC "SOUTHWEST" <>>
<VOC "WEST" <>> <VOC "NORTHWEST" <>>
<VOC "UP" <>> <VOC "DOWN" <>> >>
<CONSTANT PDIR-LIST
<PTABLE (BYTE)
P?NORTH P?NE P?EAST P?SE
P?SOUTH P?SW P?WEST P?NW
P?UP P?DOWN P?IN P?OUT>>
<CONSTANT XPDIR-LIST
<PTABLE (BYTE)
P?SOUTH P?SW P?WEST P?NW
P?NORTH P?NE P?EAST P?SE
P?DOWN P?UP P?OUT P?IN>>
<CONSTANT UP-ARROW 129>
<CONSTANT DOWN-ARROW 130>
<CONSTANT LEFT-ARROW 131>
<CONSTANT RIGHT-ARROW 132>
<CONSTANT F1 133>
<CONSTANT F2 134>
<CONSTANT F3 135>
<CONSTANT F4 136>
<CONSTANT F5 137>
<CONSTANT F6 138>
<CONSTANT F7 139>
<CONSTANT F8 140>
<CONSTANT F9 141>
<CONSTANT F10 142>
<CONSTANT F11 143>
<CONSTANT F12 144>
<CONSTANT PAD0 145>
<CONSTANT PAD1 146>
<CONSTANT PAD2 147>
<CONSTANT PAD3 148>
<CONSTANT PAD4 149>
<CONSTANT PAD5 150>
<CONSTANT PAD6 151>
<CONSTANT PAD7 152>
<CONSTANT PAD8 153>
<CONSTANT PAD9 154>
<CONSTANT CLICK1 254>
<CONSTANT CLICK2 253>
<CONSTANT MAC-DOWN-ARROW <ASCII !\/>>
<CONSTANT MAC-UP-ARROW <ASCII !\\>>
<CONSTANT TCHARS
<TABLE (KERNEL BYTE)
UP-ARROW DOWN-ARROW LEFT-ARROW RIGHT-ARROW
F1 F2 F3 F4 F5 F6 F7 F8 F9 F10
PAD0 PAD1 PAD2 PAD3 PAD4 PAD5 PAD6 PAD7 PAD8 PAD9
CLICK1 CLICK2 0 0 0>>
<CONSTANT FIRST-MAC-ARROW 26>
<CONSTANT PAD-NAMES
<PTABLE <VOC "SOUTHWEST" <>>
<VOC "SOUTH" <>>
<VOC "SOUTHEAST" <>>
<VOC "WEST" <>>
<VOC "AROUND" <>>
<VOC "EAST" <>>
<VOC "NORTHWEST" <>>
<VOC "NORTH" <>>
<VOC "NORTHEAST" <>>>>
<CONSTANT C-TABLE-LENGTH 100>
<CONSTANT C-TABLE <ITABLE %<+ ,C-TABLE-LENGTH 1>>>
<CONSTANT C-INTLEN 4> "Length of an interrupt entry."
<CONSTANT C-RTN 0> "Offset of routine name."
<CONSTANT C-TICK 1> "Offset of count."
<CONSTANT REXIT 0>
<CONSTANT UEXIT 2>
<CONSTANT NEXIT 3>
<CONSTANT FEXIT 4>
<CONSTANT CEXIT 5>
<CONSTANT DEXIT 6>
<CONSTANT NEXITSTR 0>
<CONSTANT FEXITFCN 0>
<CONSTANT CEXITFLAG 4>
<CONSTANT CEXITSTR 1>
<CONSTANT DEXITOBJ 1>
<CONSTANT DEXITSTR 2>
<CONSTANT NEW-STATS <ITABLE 8 (BYTE) 0>>
<CONSTANT NORMAL-RATE 2>
<CONSTANT BLESSED-RATE %<* ,NORMAL-RATE 2>>
<CONSTANT MIN-HIT-PROB 50>
<CONSTANT MAX-HIT-PROB 95>
<CONSTANT STSTR <PTABLE "EN" "ST" "DX" "IQ" "CM" "LK" "AC">>
<CONSTANT KEY-LABELS
<PTABLE " F1" " F2" " F3" " F4" " F5"
" F6" " F7" " F8" " F9" "F10">>
<CONSTANT APPLE-LABELS
<PTABLE "[1]" "[2]" "[3]" "[4]" "[5]"
"[6]" "[7]" "[8]" "[9]" "[0]">>
<CONSTANT SOFT-LEN 36>
<CONSTANT NSOFT-LEN -36>
<CONSTANT SOFT-KEYS
<PTABLE
<ITABLE <+ ,SOFT-LEN 2> (BYTE) 0>
<ITABLE <+ ,SOFT-LEN 2> (BYTE) 0>
<ITABLE <+ ,SOFT-LEN 2> (BYTE) 0>
<ITABLE <+ ,SOFT-LEN 2> (BYTE) 0>
<ITABLE <+ ,SOFT-LEN 2> (BYTE) 0>
<ITABLE <+ ,SOFT-LEN 2> (BYTE) 0>
<ITABLE <+ ,SOFT-LEN 2> (BYTE) 0>
<ITABLE <+ ,SOFT-LEN 2> (BYTE) 0>
<ITABLE <+ ,SOFT-LEN 2> (BYTE) 0>
<ITABLE <+ ,SOFT-LEN 2> (BYTE) 0>>>
<CONSTANT KEY-DEFAULTS
<PTABLE
<PLTABLE (STRING) "look around|">
<PLTABLE (STRING) "inventory|">
<PLTABLE (STRING) "status|">
<PLTABLE (STRING) "examine">
<PLTABLE (STRING) "take">
<PLTABLE (STRING) "drop">
<PLTABLE (STRING) "attack monster|">
<PLTABLE (STRING) "again|">
<PLTABLE (STRING) "undo|">
<PLTABLE (STRING) "oops">>>
<CONSTANT FUMBLE-NUMBER 6>
<CONSTANT LOAD-ALLOWED 30>
<CONSTANT NORMAL-ATTACK 0>
<CONSTANT PARRYING 1>
<CONSTANT THRUSTING 2>
<CONSTANT YAWNS
<LTABLE 2 "unusual" "interesting" "extraordinary" "special">>
<CONSTANT HO-HUM
<LTABLE 2
"n't do anything useful"
" accomplish nothing"
" have no desirable effect"
"n't be very productive"
" serve no purpose"
" be pointless">>
<CONSTANT YUKS
<LTABLE 2
"That's impossible"
"What a ridiculous concept"
"You can't be serious">>
<CONSTANT FIRMS
<LTABLE 2 "firm" "permanent" "immovab" "secure">>
<CONSTANT ATTACHES
<LTABLE 2 "attached" "affixed">>
<CONSTANT POINTLESS
<LTABLE 2
"There's no point in doing that"
"That would be pointless"
"That's a pointless thing to do">>
<CONSTANT PUZZLES
<LTABLE 2 "puzzl" "bewilder" "confus" "perplex">>
<CONSTANT UNKNOWN-MSGS
<LTABLE 2
<PTABLE "The word \""
"\" isn't in the vocabulary that you can use.">
<PTABLE "You don't need to use the word \""
"\" to complete this story.">
<PTABLE "This story doesn't recognize the word \""
".\"">>>
<CONSTANT LIKELIES
<LTABLE 2
" isn't likely"
" seems doubtful"
" seems unlikely"
"'s unlikely"
"'s not likely"
"'s doubtful">>
"List of words to be capitalized."
<CONSTANT CAPS
<LTABLE
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
<VOC "MR" <>> <VOC "MRS" <>> <VOC "MISS" <>>
<VOC "I" <>> <VOC "N" <>> <VOC "S" <>>
<VOC "E" <>> <VOC "W" <>> <VOC "ZORK" <>>
<VOC "ZORKMID" <>> <VOC "ZORKMIDS" <>> <VOC "ZM" <>>
<VOC "CHRISTMAS" <>> <VOC "XMAS" <>>
<VOC "FROON" <>> <VOC "FROTZEN" <>>
<VOC "GUILD" <>> <VOC "ACCARDI" <>> <VOC "GRUBBO" <>>
<VOC "THRIFF" <>> <VOC "ALEXIS" <>> <VOC "PHEE" <>>
<VOC "PHEEBOR" <>> <VOC "PHEEHELM" <>>
<VOC "QUEEN" <>> <VOC "GROTE" <>> <VOC "CLUTCHCAKE" <>>
<VOC "BOK" <>> <VOC "YABBA" <>> <VOC "SMEE" <>>
<VOC "SQUIRP" <>> <VOC "STELLA" <>> <VOC "BLARN" <>>
<VOC "PROSSER" <>> <VOC "YQUEM" <>> <VOC "WATKIN" <>>
<VOC "JUKES" <>> <VOC "MACUGA" <>>
<VOC "GRUESLAYER" NOUN> <VOC "SKYCAR" <>>
<VOC "SKYWAY" <>> <VOC "Y\'GAEL" <>> >>
<CONSTANT VOCAB2 <ITABLE 160 (BYTE) 0>>
"Game-specific constants."
<CONSTANT BASE-CHAR 79> "Base (0) character of bargraph charset."
<CONSTANT MARKBIT 128>
<CONSTANT SHOWING-ROOM 1>
<CONSTANT SHOWING-INV 2>
<CONSTANT SHOWING-ALL %<+ ,SHOWING-ROOM ,SHOWING-INV>>
<CONSTANT SHOWING-STATS 4>
<CONSTANT SLINE-LENGTH 82>
<CONSTANT SLINE <ITABLE ,SLINE-LENGTH (BYTE) 0>>
<CONSTANT MAX-HEIGHT 25>
<CONSTANT MAX-DWIDTH 62>
<CONSTANT DBOX-LENGTH %<+ <* ,MAX-HEIGHT ,MAX-DWIDTH> 2>>
<CONSTANT DBOX <ITABLE ,DBOX-LENGTH (BYTE) 0>>
<CONSTANT MWIDTH 17>
<CONSTANT MHEIGHT 11>
<CONSTANT MAP-SIZE %<* ,MWIDTH ,MHEIGHT>>
<CONSTANT MAP <ITABLE ,MAP-SIZE (BYTE) 0>>
<CONSTANT CENTERX %</ ,MWIDTH 2>>
<CONSTANT NCENTERX %<- 0 ,CENTERX>>
<CONSTANT CENTERY %</ ,MHEIGHT 2>>
<CONSTANT NCENTERY %<- 0 ,CENTERY>>
<CONSTANT ROOMS-MAPPED-LENGTH 46>
<CONSTANT ROOMS-MAPPED <ITABLE ,ROOMS-MAPPED-LENGTH (BYTE) 0>>
<CONSTANT MAP-TOP 1>
<CONSTANT MAP-BOT %<- ,MHEIGHT 2>>
<CONSTANT MAP-LEFT 256>
<CONSTANT MAP-RIGHT %<* <- ,MWIDTH 2> 256>>
<CONSTANT NGVERBS 33> "Number of GAME-VERBS."
<CONSTANT GAME-VERBS
<PTABLE
V?INVENTORY V?STATUS V?TELL
V?SAVE V?RESTORE V?RESTART V?UNDO V?TIME V?SCORE V?DIAGNOSE
V?SCRIPT V?UNSCRIPT V?HELP V?MONITOR V?CASH
V?VERSION V?QUIT V?MODE V?SETTINGS V?DEFINE
V?VERBOSE V?BRIEF V?SUPER-BRIEF V?NOTIFY V?NAME
V?PRIORITY-ON V?PRIORITY-OFF V?ZOOM
V?REFRESH V?COLOR V?$VERIFY V?SPELLS V?$CREDITS
; "V?$RECORD V?$UNRECORD V?$COMMAND V?$RANDOM V?$CHEAT V?$SUSS">>
"These verbs reverse the order of PRSO and PRSI."
<CONSTANT NR-VERBS 19>
<CONSTANT R-VERBS
<PTABLE V?STOUCH-TO V?SASK-FOR
V?SGIVE V?SSHOW V?SFEED V?SSELL-TO V?SBUY
V?SHIT V?SPOINT-AT V?STHROW
V?SWRAP V?COVER V?DIG V?DIG-UNDER V?SDIG V?SLOOK-THRU
V?WEDGE V?SFIRE-AT V?SWING>>
<CONSTANT NHAVES 23> "Number of HAVEVERBS."
<CONSTANT HAVEVERBS
<PTABLE V?DROP V?PUT V?PUT-ON V?GIVE V?SHOW V?FEED V?THROW V?HIT
V?PUT-UNDER V?PUT-BEHIND V?THROW-OVER V?RELEASE
V?TAKE-WITH V?TOUCH-TO V?OPEN V?OPEN-WITH V?CLOSE V?COVER
V?ERASE-WITH V?POINT-AT V?SUBMERGE V?WIELD V?UNWIELD>>
<CONSTANT NTVERBS 17> "Number of TALKVERBS."
<CONSTANT TALKVERBS
<PTABLE
V?TELL V?TELL-ABOUT V?ASK-ABOUT V?ASK-FOR V?WHAT V?WHERE V?WHO
V?ALARM V?HELLO V?GOODBYE V?SAY V?YELL V?THANK V?QUESTION V?REPLY
V?LAUGH V?REQUEST>>
<CONSTANT NTOUCHES 81> "Number of TOUCHVERBS"
<CONSTANT TOUCHVERBS
<PTABLE
V?TAKE V?TAKE-OFF V?TAKE-WITH
V?PUT V?PUT-ON V?PUT-UNDER V?PUT-BEHIND
V?COVER V?EMPTY-INTO V?REACH-IN V?TOUCH-TO V?TOUCH V?HIT V?THRUST
V?PARRY V?PUNCH V?KICK V?MOVE V?PUSH V?PUSH-TO V?PUSH-UP V?PUSH-DOWN
V?PULL V?LOWER V?RAISE V?LOOSEN V?TURN-TO V?ADJUST V?SPIN V?TURN
V?SHAKE V?SWING V?OPEN V?OPEN-WITH V?CLOSE V?LOCK V?UNLOCK
; "V?SCREW V?UNSCREW" V?UPROOT
V?PLUG-IN V?UNPLUG V?TIE V?UNTIE V?FOLD V?LAMP-ON V?LAMP-OFF
V?WRAP-AROUND V?CUT V?RIP V?MUNG V?DIG V?DIG-UNDER
V?FILL V?FILL-FROM
V?DEFLATE V?BURN-WITH V?CLEAN V?CLEAN-OFF V?BLOW-INTO V?DETONATE
V?WIND V?REPAIR V?REPLACE V?PICK V?MELT V?SQUEEZE ; V?PLAY
; "V?UNSCREW-FROM V?SCREW-WITH" V?GIVE V?FEED V?STAND-ON
V?SIT V?LIE-DOWN V?EAT V?BITE V?TASTE V?DRINK V?DRINK-FROM V?POP
V?CRANK V?SCRATCH V?SCRAPE-ON V?PEEL V?SUBMERGE>>
<CONSTANT NHVERBS 17> "Number of HURTVERBS."
<CONSTANT HURTVERBS
<PTABLE
V?HIT V?PUNCH V?KICK V?MUNG V?KNOCK V?KICK V?SQUEEZE V?CUT
V?RIP V?BITE V?RAPE V?SHAKE V?UNDRESS V?DETONATE V?PUSH V?PUSH-TO
V?PULL>>
<CONSTANT NUMPUTS 10> "# PUTVERBS."
<CONSTANT PUTVERBS
<PTABLE V?DROP V?PUT V?PUT-ON V?PUT-UNDER V?PUT-BEHIND V?THROW
V?THROW-OVER V?EMPTY V?EMPTY-INTO V?HANG-ON>>
<CONSTANT NMVERBS 28> "Number of MOVEVERBS."
<CONSTANT MOVEVERBS
<PTABLE
V?TAKE V?TAKE-OFF V?MOVE V?PULL V?PUSH V?PUSH-TO V?PUSH-UP
V?PUSH-DOWN V?TURN V?RAISE V?UPROOT
V?LOWER V?SPIN V?SHAKE ; V?PLAY V?OPEN V?OPEN-WITH V?CLOSE V?ADJUST
V?TURN-TO V?POINT-AT V?SWING V?UNPLUG V?BOUNCE
V?PUT-UNDER V?PUT-BEHIND V?LOOK-UNDER V?LOOK-BEHIND V?CRANK>>
<CONSTANT NSVERBS 19> "Number of SEEVERBS"
<CONSTANT SEEVERBS
<PTABLE V?EXAMINE V?LOOK V?LOOK-INSIDE V?LOOK-ON V?READ V?FIND
V?SEARCH V?SHOW V?LOOK-UNDER V?LOOK-BEHIND V?LOOK-THRU
V?LOOK-DOWN V?LOOK-UP V?READ-TO V?LOOK-OUTSIDE V?COUNT
V?ADJUST V?POINT V?EXAMINE-IN>>
<CONSTANT ENTER-VERBS 5>
<CONSTANT CLIMB-ON-VERBS 13>
<CONSTANT E-VERBS
<PTABLE V?WALK-TO V?ENTER V?THROUGH V?FOLLOW V?USE
V?CLIMB-ON V?CLIMB-UP V?CLIMB-OVER V?SIT V?RIDE
V?STAND-ON V?LIE-DOWN V?CROSS>>
<CONSTANT EXIT-VERBS 3>
<CONSTANT CLIMB-DOWN-VERBS 5>
<CONSTANT X-VERBS
<PTABLE V?EXIT V?LEAVE V?ESCAPE
V?CLIMB-DOWN V?LEAP>>
<CONSTANT D-N #2 00000001>
<CONSTANT D-NE #2 00000010>
<CONSTANT D-E #2 00000100>
<CONSTANT D-SE #2 00001000>
<CONSTANT D-S #2 00010000>
<CONSTANT D-SW #2 00100000>
<CONSTANT D-W #2 01000000>
<CONSTANT D-NW #2 10000000>
<CONSTANT DBIT-LIST
<PTABLE (BYTE) D-N D-NE D-E D-SE D-S D-SW D-W D-NW>>
<CONSTANT XD-N #2 11111110>
<CONSTANT XD-NE #2 11111101>
<CONSTANT XD-E #2 11111011>
<CONSTANT XD-SE #2 11110111>
<CONSTANT XD-S #2 11101111>
<CONSTANT XD-SW #2 11011111>
<CONSTANT XD-W #2 10111111>
<CONSTANT XD-NW #2 01111111>
<CONSTANT XDBIT-LIST
<PTABLE (BYTE) XD-N XD-NE XD-E XD-SE
XD-S XD-SW XD-W XD-NW
XD-N XD-NE XD-E XD-SE>>
<CONSTANT D-ALL 255>
<CONSTANT D-LEFT %<+ ,D-N ,D-NE ,D-E ,D-SE ,D-S>>
<CONSTANT D-RIGHT %<+ ,D-N ,D-S ,D-SW ,D-W ,D-NW>>
<CONSTANT D-TOP %<+ ,D-E ,D-SE ,D-S ,D-SW ,D-W>>
<CONSTANT D-BOTTOM %<+ ,D-N ,D-NE ,D-E ,D-W ,D-NW>>
"Pure border data (copied into BORDERS)."
<CONSTANT DEFAULT-BORDERS
<PLTABLE (BYTE)
%<+ ,D-E ,D-SE ,D-S>
,D-TOP ,D-TOP ,D-TOP ,D-TOP ,D-TOP
%<+ ,D-S ,D-SW ,D-W>
,D-LEFT ,D-ALL ,D-ALL ,D-ALL ,D-ALL ,D-ALL ,D-RIGHT
,D-LEFT ,D-ALL ,D-ALL ,D-ALL ,D-ALL ,D-ALL ,D-RIGHT
,D-LEFT ,D-ALL ,D-ALL ,D-ALL ,D-ALL ,D-ALL ,D-RIGHT
,D-LEFT ,D-ALL ,D-ALL ,D-ALL ,D-ALL ,D-ALL ,D-RIGHT
,D-LEFT ,D-ALL ,D-ALL ,D-ALL ,D-ALL ,D-ALL ,D-RIGHT
%<+ ,D-N ,D-NE ,D-E>
,D-BOTTOM ,D-BOTTOM ,D-BOTTOM ,D-BOTTOM ,D-BOTTOM
%<+ ,D-N ,D-W ,D-NW>>>
<CONSTANT XLIST-NAMES
<PTABLE "N" "NE" "E" "SE" "S" "SW" "W" "NW"
"Up" "Down" "In" "Out">>
<CONSTANT NORMAL-DHEIGHT 9>
<CONSTANT XOFFS <PTABLE 0 1 1 1 0 -1 -1 -1>>
<CONSTANT YOFFS <PTABLE -1 -1 0 1 1 1 0 -1>>
<CONSTANT SHITCHARS
<PTABLE (BYTE) 124 47 45 92 124 47 45 92>>
<CONSTANT QDIRS <PTABLE (BYTE) 0 2 4 6 0>>
<CONSTANT ZDIRS <PTABLE (BYTE) 3 5 7 1 3 5>>
<CONSTANT SETOFFS
<PTABLE (BYTE) 4 4 3 3 8 0 2 19 19>>
<CONSTANT SNAMES
<PTABLE " Display Mode "
" Descriptions "
" Transcripting "
" Status Notify "
" Map View "
" Display Priority "
" Combat Monitor "
" Restore Defaults "
" Exit ">>
"Character set data."
<CONSTANT QMARK 96>
<CONSTANT IQMARK 126>
<CONSTANT TRCORNER 71>
<CONSTANT BRCORNER 72>
<CONSTANT BLCORNER 73>
<CONSTANT TLCORNER 74>
<CONSTANT TOPEDGE 75>
<CONSTANT BOTEDGE 76>
<CONSTANT LEDGE 77>
<CONSTANT REDGE 78>
<CONSTANT RDIAG 35>
<CONSTANT LDIAG 36>
<CONSTANT SOLID 37>
<CONSTANT BOT 38>
<CONSTANT TOP 39>
<CONSTANT LSID 40>
<CONSTANT RSID 41>
<CONSTANT NCON 42>
<CONSTANT SCON 43>
<CONSTANT ECON 44>
<CONSTANT WCON 45>
<CONSTANT BLC 46>
<CONSTANT TLC 47>
<CONSTANT TRC 48>
<CONSTANT BRC 49>
<CONSTANT SWCON 50>
<CONSTANT NWCON 51>
<CONSTANT NECON 52>
<CONSTANT SECON 53>
<CONSTANT ISOLID 54>
<CONSTANT XCROSS 90>
<CONSTANT HVCROSS 91>
<CONSTANT UARROW 92>
<CONSTANT DARROW 93>
<CONSTANT UDARROW 94>
<CONSTANT SMBOX 95>
<CONSTANT MCHARS
<PTABLE (BYTE) LSID RDIAG BOT LDIAG LSID RDIAG BOT LDIAG>>
<CONSTANT XCHARS
<PTABLE (BYTE) NCON NECON ECON SECON SCON SWCON WCON NWCON>>
<CONSTANT NXCHARS
<PTABLE (BYTE) TOP TRC LSID BRC BOT BLC RSID TLC>>
<CONSTANT IUARROW 123>
<CONSTANT IDARROW 124>
<CONSTANT IUDARROW 125>
<CONSTANT LCAP 88>
<CONSTANT RCAP 89>
<CONSTANT ENDURANCE 0>
<CONSTANT HP 0>
<CONSTANT STRENGTH 1>
<CONSTANT STR 1>
<CONSTANT DEXTERITY 2>
<CONSTANT DEX 2>
<CONSTANT INTELLIGENCE 3>
<CONSTANT IQ 3>
<CONSTANT COMPASSION 4>
<CONSTANT COM 4>
<CONSTANT LUCK 5>
<CONSTANT ARMOR-CLASS 6>
<CONSTANT AC 6>
<CONSTANT EXPERIENCE 7>
<CONSTANT EXP 7>
<CONSTANT NSTATS 8> "Number of statistics."
<CONSTANT BEGINNERS-ENDURANCE 16>
<CONSTANT BEGINNERS-STRENGTH 8>
<CONSTANT BEGINNERS-DEXTERITY 8>
<CONSTANT BEGINNERS-INTELLIGENCE 8>
<CONSTANT BEGINNERS-COMPASSION 1>
<CONSTANT BEGINNERS-LUCK 25>
<CONSTANT NAKED-ARMOR-CLASS 1>
<CONSTANT BEGINNERS-EXPERIENCE 0>
<CONSTANT STATMAX 99> "High as any statistic can go."
<CONSTANT READING-IQ 40>
<CONSTANT WINNING-COMPASSION -45>
<CONSTANT DEFAULT-STATS
<PTABLE ,BEGINNERS-ENDURANCE
,BEGINNERS-STRENGTH
,BEGINNERS-DEXTERITY
,BEGINNERS-INTELLIGENCE
,BEGINNERS-COMPASSION
,BEGINNERS-LUCK
,NAKED-ARMOR-CLASS
,BEGINNERS-EXPERIENCE>>
<CONSTANT CNAME-LEN 7>
<CONSTANT BARMAR %<+ ,CNAME-LEN 3>>
<CONSTANT APPBOX 18> "Width of Apple stat box."
<CONSTANT CNAMES
<PTABLE "Lucky "
"Tank "
"Muscles"
"Nimble "
"Genius "
"Saint " >>
<CONSTANT CSTATS
<PTABLE <PTABLE 16 8 8 8 1 25>
<PTABLE 30 16 8 1 1 10>
<PTABLE 18 20 18 4 1 5>
<PTABLE 12 14 20 4 1 15>
<PTABLE 12 10 8 16 5 15>
<PTABLE 12 10 8 8 16 12>
>>
<CONSTANT INIT-POTENTIAL
<+ -6 ,BEGINNERS-LUCK ,BEGINNERS-COMPASSION
,BEGINNERS-INTELLIGENCE ,BEGINNERS-DEXTERITY
,BEGINNERS-STRENGTH ,BEGINNERS-ENDURANCE>>
<CONSTANT AVERAGE %</ ,INIT-POTENTIAL 6>>
<CONSTANT SPREAD %</ ,AVERAGE 2>>
<CONSTANT THRESHOLDS <PTABLE 9 29 59 99 149 209 279 359 449>>
<CONSTANT MAX-LEVEL 8>
<CONSTANT RANK-NAMES <PTABLE "Peasant" "Novice" "Cheater">>
; <CONSTANT SAVE-NAME <PLTABLE (STRING) "BEYONDZ">>
<CONSTANT CHARNAME-LENGTH 24>
<CONSTANT CHARNAME <ITABLE %<+ ,CHARNAME-LENGTH 1> (BYTE) 0>>
<CONSTANT NAMES-LENGTH 12>
<CONSTANT DEFAULT-NAME-LENGTH 13>
<CONSTANT DEFAULT-NAME
<PTABLE (STRING) 11 "Frank Booth" 0>>
<CONSTANT LABEL-WIDTH 12>
<CONSTANT BAR-LABELS
<PTABLE (STRING)
" Endurance"
" Strength"
" Dexterity"
"Intelligence"
" Compassion"
" Luck"
" Armor Class">>
<CONSTANT STAT-NAMES
<PTABLE "endurance"
"strength"
"dexterity"
"intelligence"
"compassion"
"luck"
"armor class"
"experience">>
<CONSTANT BORDERS <ITABLE 50 (BYTE) 0>>
<CONSTANT MAZE-ROOMS <ITABLE 51 (BYTE) 0>>
<CONSTANT MOOR-ROOMS
<PLTABLE (BYTE) IN-GAS MOOR2 MOOR3 MOOR4 MOOR5 MOOR6>>
<CONSTANT CELLAR-ROOMS
<PLTABLE (BYTE) AT-STACK THRONE-ROOM AT-BOTTOM SKEL-ROOM
MOSS-ROOM WC1>>
<CONSTANT TOWER1-ROOMS
<PLTABLE (BYTE) LEVEL1A LEVEL1B LEVEL1C LEVEL1D>>
<CONSTANT TOWER2-ROOMS
<PLTABLE (BYTE) LEVEL2A LEVEL2B LEVEL2C LEVEL2D>>
<CONSTANT TOWER3-ROOMS
<PLTABLE (BYTE) LEVEL3A LEVEL3B LEVEL3C LEVEL3D>>
<CONSTANT PLAIN-ROOMS
<PLTABLE (BYTE) PLAIN0 PLAIN1 PLAIN2 PLAIN3 PLAIN4 PLAIN5>>
<CONSTANT INIT-STORM-TIMER 4>
<CONSTANT MIZNIA-ROOMS <PLTABLE (BYTE) IN-PORT IN-YARD SW-MOOR>>
<CONSTANT JUNGLE-ROOMS
<PLTABLE (BYTE)
JUN0 WORM-ROOM JUN2 JUN3 JUN4 JUN5 JUN6>>
<CONSTANT CAVE-ROOMS
<PLTABLE (BYTE)
CAVE0 CAVE1 CAVE2 CAVE3 CAVE4 CAVE6>>
<CONSTANT GRUE-SIGHTS
<LTABLE 2
"You sense a presence lurking in the darkness"
"A presence lurks in the darkness close at hand"
"Something is lurking in the darkness nearby">>
<CONSTANT MIRROR-LIFE 36>
<CONSTANT GRUE-ROOMS
<PLTABLE (BYTE)
CAVE0 CAVE1 CAVE2 CAVE3 CAVE4
CAVE6 CAVE7 SE-CAVE NE-CAVE IN-LAIR>>
<CONSTANT FOREST-ROOMS
<PLTABLE (BYTE)
TWILIGHT FOREST1 FOREST2 FOREST3
FOREST4 FOREST5 FOREST6>>
<CONSTANT RUIN-ROOMS
<PLTABLE (BYTE) RUIN0 RUIN1 RUIN2 RUIN3 RUIN4 RUIN5>>
<CONSTANT ACCARDI-ROOMS
<PLTABLE (BYTE) IN-ACCARDI AT-GATE IN-HALL IN-WEAPON>>
<CONSTANT SHORE-ROOMS
<PLTABLE (BYTE) AT-LEDGE AT-BRINE TOWER-BASE>>
<CONSTANT WAND-LIST
<LTABLE 0 WAND STAFF STAVE STICK ROD CANE>>
<VOC "ANNIHILATION" NOUN>
<VOC "SAYONARA" NOUN>
<VOC "ANESTHESIA" NOUN>
<VOC "EVERSION" NOUN>
<VOC "LEVITATION" NOUN>
<CONSTANT WAND-FUNCTIONS
<LTABLE 0
<PTABLE BLAST-WAND-F
DESCRIBE-BLAST-WAND
<VOC "ANNIHILATION" ADJ>>
<PTABLE TELE-WAND-F
DESCRIBE-TELE-WAND
<VOC "SAYONARA" ADJ>>
<PTABLE SLEEP-WAND-F
DESCRIBE-SLEEP-WAND
<VOC "ANESTHESIA" ADJ>>
<PTABLE IO-WAND-F
DESCRIBE-IO-WAND
<VOC "EVERSION" ADJ>>
<PTABLE LEV-WAND-F
DESCRIBE-LEV-WAND
<VOC "LEVITATION" ADJ>>>>
<CONSTANT POTION-LIST
<LTABLE 0 APOTION BPOTION CPOTION DPOTION EPOTION>>
<VOC "ENLIGHTENMENT" NOUN>
<VOC "HEALING" NOUN>
<VOC "DEATH" NOUN>
<VOC "MIGHT" NOUN>
<VOC "FORGETFUL" NOUN>
<CONSTANT POTION-TABLES
<LTABLE 0
<PTABLE IQ-POTION-F
DESCRIBE-IQ-POTION
<VOC "ENLIGHTENMENT" ADJ>>
<PTABLE HEALING-POTION-F
DESCRIBE-HEALING-POTION
<VOC "HEALING" ADJ>>
<PTABLE DEATH-POTION-F
DESCRIBE-DEATH-POTION
<VOC "DEATH" ADJ>>
<PTABLE MIGHT-POTION-F
DESCRIBE-MIGHT-POTION
<VOC "MIGHT" ADJ>>
<PTABLE FORGET-POTION-F
DESCRIBE-FORGET-POTION
<VOC "FORGETFUL" ADJ>>>>
<CONSTANT ALL-SCROLLS
<PLTABLE PARCHMENT GILT SMOOTH RUMPLE VELLUM
PALIMP RENEWAL>>
<CONSTANT SCROLL-LIST
<LTABLE 0 PARCHMENT GILT SMOOTH RUMPLE VELLUM>>
<VOC "MISCHIEF" NOUN>
<VOC "HONING" NOUN>
<VOC "PROTECTION" NOUN>
<VOC "FIREWORKS" NOUN>
<VOC "RECALL" NOUN>
<CONSTANT SCROLL-FUNCTIONS
<LTABLE 0
<PTABLE DO-PARTAY
DESCRIBE-DO-PARTAY
<VOC "MISCHIEF" ADJ>
"yard improvements"
1
8>
<PTABLE DO-BLESS-WEAPON
DESCRIBE-BLESS-WEAPON
<VOC "HONING" ADJ>
"weaponry"
5
16>
<PTABLE DO-BLESS-ARMOR
DESCRIBE-BLESS-ARMOR
<VOC "PROTECTION" ADJ>
"armor"
5
16>
<PTABLE DO-FILFRE
DESCRIBE-DO-FILFRE
<VOC "FIREWORKS" ADJ>
"humility and self-effacement"
1
8>
<PTABLE DO-GOTO
DESCRIBE-DO-GOTO
<VOC "RECALL" ADJ>
"transportation"
5
24>>>
<CONSTANT TELEROOMS
<PLTABLE (BYTE)
HILLTOP AT-BROOK IN-PORT N-MOOR XROADS NFORD SFORD
NGURTH IN-THRIFF>>
<CONSTANT OVERS
<LTABLE "Ruins" "Bridge" "Forest" "Town"
"City" "Seashore" "Roadway"
"Fields" "Village" "Castle" "Mist"
"Jungle" "Seaport" "Mountainside">>
<CONSTANT HIGHEST-ZBOT 16384>
<CONSTANT ORUINS 1>
<CONSTANT OBRIDGE 2>
<CONSTANT OFOREST 3>
<CONSTANT OACCARDI 4>
<CONSTANT OCITY 5>
<CONSTANT OSHORE 6>
<CONSTANT OXROADS 7>
<CONSTANT OPLAIN 8>
<CONSTANT OGRUBBO 9>
<CONSTANT OCAVES 10>
<CONSTANT OMOOR 11>
<CONSTANT OJUNGLE 12>
<CONSTANT OMIZNIA 13>
<CONSTANT OTHRIFF 14>
<CONSTANT FLY-TABLES
<PLTABLE
; 1 <PTABLE (BYTE) %<+ ,D-SE ,D-SW>
OACCARDI OBRIDGE>
; 2 <PTABLE (BYTE) %<+ ,D-NE ,D-SE ,D-SW>
ORUINS OSHORE OFOREST>
; 3 <PTABLE (BYTE) %<+ ,D-NE ,D-E ,D-S>
OBRIDGE OACCARDI OCITY>
; 4 <PTABLE (BYTE) %<+ ,D-S ,D-SW ,D-W ,D-NW>
OSHORE OXROADS OFOREST ORUINS>
; 5 <PTABLE (BYTE) %<+ ,D-N ,D-E ,D-SE ,D-S>
OFOREST OSHORE OPLAIN OXROADS>
; 6 <PTABLE (BYTE) %<+ ,D-N ,D-S ,D-SW ,D-W ,D-NW>
OACCARDI OGRUBBO OPLAIN OCITY OBRIDGE>
; 7 <PTABLE (BYTE) %<+ ,D-N ,D-NE ,D-E ,D-SE ,D-SW>
OCITY OACCARDI OPLAIN OMIZNIA OCAVES>
; 8 <PTABLE (BYTE) %<+ ,D-NE ,D-E ,D-SE ,D-S ,D-W ,D-NW>
OSHORE OGRUBBO OMOOR
OMIZNIA OXROADS OCITY>
; 9 <PTABLE (BYTE) %<+ ,D-N ,D-S ,D-SW ,D-W>
OSHORE OMOOR OJUNGLE OPLAIN>
; 10 <PTABLE (BYTE) %<+ ,D-NE ,D-SE>
OXROADS OTHRIFF>
; 11 <PTABLE (BYTE) %<+ ,D-N ,D-SW ,D-NW>
OGRUBBO OMIZNIA OPLAIN>
; 12 <PTABLE (BYTE) %<+ ,D-NE ,D-E ,D-SW>
OGRUBBO OMIZNIA OTHRIFF>
; 13 <PTABLE (BYTE) %<+ ,D-N ,D-NE ,D-W ,D-NW>
OPLAIN OMOOR OJUNGLE OXROADS>
; 14 <PTABLE (BYTE) %<+ ,D-NE ,D-NW>
OJUNGLE OCAVES>
>>
<CONSTANT PICT-LIST
<PTABLE G-EYE G-EAR G-NOSE G-MOUTH G-HAND G-CLOCK>>
<CONSTANT GURDY-EFFECTS
<PTABLE "wraith of colored light"
"brief chord of music"
"whiff of random odors"
"puff of tasty flavors"
"vague itchiness"
"strange sense of urgency">>
<CONSTANT GURDY-PEEKS
<PTABLE "eyes sting"
"ears ring"
"nose tickle"
"mouth water"
"skin crawl"
"pulse race">>
<CONSTANT Q-BUZZES
<PLTABLE <VOC "WHY" <>> <VOC "HOW" <>>
<VOC "WHEN" <>> <VOC "WOULD" <>>
<VOC "COULD" <>> <VOC "SHOULD" <>>
<VOC "HAS" <>> <VOC "AM" <>> <VOC "IS" <>>
<VOC "WAS" <>> >>
<CONSTANT N-BUZZES
<PLTABLE <VOC "ZERO" <>> <VOC "ONE" <>> <VOC "TWO" <>>
<VOC "THREE" <>> <VOC "FOUR" <>> <VOC "FIVE" <>>
<VOC "SIX" <>> <VOC "SEVEN" <>> <VOC "EIGHT" <>>
<VOC "NINE" <>> <VOC "TEN" <>>>>
<CONSTANT SWEAR-WORDS
<PLTABLE <VOC "CURSE" <>> <VOC "GODDAMNED" <>> <VOC "CUSS" <>>
<VOC "DAMN" <>> <VOC "FUCK" <>>
<VOC "SHITHEAD" <>> <VOC "BASTARD" <>> <VOC "ASS" <>>
<VOC "FUCKING" <>> <VOC "BITCH" <>> <VOC "DAMNED" <>>