aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Oteiza2017-01-17 19:11:06 -0500
committerMark Oteiza2017-02-19 08:13:30 -0500
commit33400529c61d98a8db9e8dbb1b686a5b55964403 (patch)
tree868bc47af9e7646d6de7a29f3a788902bb79bee6
parent938426d1ca0930b859c3e37b26513f5d74761284 (diff)
downloademacs-33400529c61d98a8db9e8dbb1b686a5b55964403.tar.gz
emacs-33400529c61d98a8db9e8dbb1b686a5b55964403.zip
Move all dunnet globals up to the top
* lisp/play/dunnet.el: Adjust comments to reflect moved forms. (dun-visited, dun-current-room, dun-exitf): (dun-badcd, dun-computer, dun-floppy, dun-key-level, dun-hole): (dun-correct-answer, dun-lastdir, dun-numsaves, dun-jar, dun-dead): (room, dun-numcmds, dun-wizard, dun-endgame-question, dun-logged-in): (dungeon-mode, dun-unix-verbs, dun-dos-verbs, dun-batch-mode): (dun-cdpath, dun-cdroom, dun-uncompressed, dun-ethernet): (dun-restricted, dun-ftptype, dun-endgame, dun-rooms): (dun-light-rooms, dun-verblist, dun-inbus, dun-nomail, dun-ignore): (dun-mode, dun-sauna-level, north, south, east, west, northeast): (southeast, northwest, southwest, up, down, in, out, dungeon-map): (dun-objnames, obj-special, dun-room-objects, dun-room-silents): (dun-inventory, dun-objects, dun-object-lbs, dun-object-pts): (dun-objfiles, dun-perm-objects, dun-physobj-desc, dun-permobj-desc): (dun-diggables, dun-room-shorts, dun-endgame-questions): Move to the top of the file, before any uses.
-rw-r--r--lisp/play/dunnet.el2249
1 files changed, 1127 insertions, 1122 deletions
diff --git a/lisp/play/dunnet.el b/lisp/play/dunnet.el
index 8ddb680f252..08189c1b0a3 100644
--- a/lisp/play/dunnet.el
+++ b/lisp/play/dunnet.el
@@ -43,6 +43,1132 @@
43 :type 'file 43 :type 'file
44 :group 'dunnet) 44 :group 'dunnet)
45 45
46;;;;
47;;;; This section defines the globals that are used in dunnet.
48;;;;
49;;;; IMPORTANT
50;;;; All globals which can change must be saved from 'save-game. Add
51;;;; all new globals to bottom of file.
52
53(setq dun-visited '(27))
54(setq dun-current-room 1)
55(setq dun-exitf nil)
56(setq dun-badcd nil)
57(setq dun-computer nil)
58(setq dun-floppy nil)
59(setq dun-key-level 0)
60(setq dun-hole nil)
61(setq dun-correct-answer nil)
62(setq dun-lastdir 0)
63(setq dun-numsaves 0)
64(setq dun-jar nil)
65(setq dun-dead nil)
66(setq room 0)
67(setq dun-numcmds 0)
68(setq dun-wizard nil)
69(setq dun-endgame-question nil)
70(setq dun-logged-in nil)
71(setq dungeon-mode 'dungeon)
72(setq dun-unix-verbs '((ls . dun-ls) (ftp . dun-ftp) (echo . dun-echo)
73 (exit . dun-uexit) (cd . dun-cd) (pwd . dun-pwd)
74 (rlogin . dun-rlogin) (ssh . dun-rlogin)
75 (uncompress . dun-uncompress) (cat . dun-cat)))
76
77(setq dun-dos-verbs '((dir . dun-dos-dir) (type . dun-dos-type)
78 (exit . dun-dos-exit) (command . dun-dos-spawn)
79 (b: . dun-dos-invd) (c: . dun-dos-invd)
80 (a: . dun-dos-nil)))
81
82
83(setq dun-batch-mode nil)
84
85(setq dun-cdpath "/usr/toukmond")
86(setq dun-cdroom -10)
87(setq dun-uncompressed nil)
88(setq dun-ethernet t)
89(setq dun-restricted
90 '(dun-room-objects dungeon-map dun-rooms
91 dun-room-silents dun-combination))
92(setq dun-ftptype 'ascii)
93(setq dun-endgame nil)
94(setq dun-gottago t)
95(setq dun-black nil)
96
97(setq dun-rooms '(
98 (
99"You are in the treasure room. A door leads out to the north."
100 "Treasure room"
101 )
102 (
103"You are at a dead end of a dirt road. The road goes to the east.
104In the distance you can see that it will eventually fork off. The
105trees here are very tall royal palms, and they are spaced equidistant
106from each other."
107 "Dead end"
108 )
109 (
110"You are on the continuation of a dirt road. There are more trees on
111both sides of you. The road continues to the east and west."
112 "E/W Dirt road"
113 )
114 (
115"You are at a fork of two passages, one to the northeast, and one to the
116southeast. The ground here seems very soft. You can also go back west."
117 "Fork"
118 )
119 (
120"You are on a northeast/southwest road."
121 "NE/SW road"
122 )
123 (
124"You are at the end of the road. There is a building in front of you
125to the northeast, and the road leads back to the southwest."
126 "Building front"
127 )
128 (
129"You are on a southeast/northwest road."
130 "SE/NW road"
131 )
132 (
133"You are standing at the end of a road. A passage leads back to the
134northwest."
135 "Bear hangout"
136 )
137 (
138"You are in the hallway of an old building. There are rooms to the east
139and west, and doors leading out to the north and south."
140 "Old Building hallway"
141 )
142 (
143"You are in a mailroom. There are many bins where the mail is usually
144kept. The exit is to the west."
145 "Mailroom"
146 )
147 (
148"You are in a computer room. It seems like most of the equipment has
149been removed. There is a VAX 11/780 in front of you, however, with
150one of the cabinets wide open. A sign on the front of the machine
151says: This VAX is named ‘pokey’. To type on the console, use the
152‘type’ command. The exit is to the east."
153 "Computer room"
154 )
155 (
156"You are in a meadow in the back of an old building. A small path leads
157to the west, and a door leads to the south."
158 "Meadow"
159 )
160 (
161"You are in a round, stone room with a door to the east. There
162is a sign on the wall that reads: ‘receiving room’."
163 "Receiving room"
164 )
165 (
166"You are at the south end of a hallway that leads to the north. There
167are rooms to the east and west."
168 "Northbound Hallway"
169 )
170 (
171"You are in a sauna. There is nothing in the room except for a dial
172on the wall. A door leads out to west."
173 "Sauna"
174 )
175 (
176"You are at the end of a north/south hallway. You can go back to the south,
177or off to a room to the east."
178 "End of N/S Hallway"
179 )
180 (
181"You are in an old weight room. All of the equipment is either destroyed
182or completely broken. There is a door out to the west, and there is a ladder
183leading down a hole in the floor."
184 "Weight room" ;16
185 )
186 (
187"You are in a maze of twisty little passages, all alike.
188There is a button on the ground here."
189 "Maze button room"
190 )
191 (
192"You are in a maze of little twisty passages, all alike."
193 "Maze"
194 )
195 (
196"You are in a maze of thirsty little passages, all alike."
197 "Maze" ;19
198 )
199 (
200"You are in a maze of twenty little passages, all alike."
201 "Maze"
202 )
203 (
204"You are in a daze of twisty little passages, all alike."
205 "Maze" ;21
206 )
207 (
208"You are in a maze of twisty little cabbages, all alike."
209 "Maze" ;22
210 )
211 (
212"You are in a reception area for a health and fitness center. The place
213appears to have been recently ransacked, and nothing is left. There is
214a door out to the south, and a crawlspace to the southeast."
215 "Reception area"
216 )
217 (
218"You are outside a large building to the north which used to be a health
219and fitness center. A road leads to the south."
220 "Health Club front"
221 )
222 (
223"You are at the north side of a lake. On the other side you can see
224a road which leads to a cave. The water appears very deep."
225 "Lakefront North"
226 )
227 (
228"You are at the south side of a lake. A road goes to the south."
229 "Lakefront South"
230 )
231 (
232"You are in a well-hidden area off to the side of a road. Back to the
233northeast through the brush you can see the bear hangout."
234 "Hidden area"
235 )
236 (
237"The entrance to a cave is to the south. To the north, a road leads
238towards a deep lake. On the ground nearby there is a chute, with a sign
239that says ‘put treasures here for points’."
240 "Cave Entrance" ;28
241 )
242 (
243"You are in a misty, humid room carved into a mountain.
244To the north is the remains of a rockslide. To the east, a small
245passage leads away into the darkness." ;29
246 "Misty Room"
247 )
248 (
249"You are in an east/west passageway. The walls here are made of
250multicolored rock and are quite beautiful."
251 "Cave E/W passage" ;30
252 )
253 (
254"You are at the junction of two passages. One goes north/south, and
255the other goes west."
256 "N/S/W Junction" ;31
257 )
258 (
259"You are at the north end of a north/south passageway. There are stairs
260leading down from here. There is also a door leading west."
261 "North end of cave passage" ;32
262 )
263 (
264"You are at the south end of a north/south passageway. There is a hole
265in the floor here, into which you could probably fit."
266 "South end of cave passage" ;33
267 )
268 (
269"You are in what appears to be a worker's bedroom. There is a queen-
270sized bed in the middle of the room, and a painting hanging on the
271wall. A door leads to another room to the south, and stairways
272lead up and down."
273 "Bedroom" ;34
274 )
275 (
276"You are in a bathroom built for workers in the cave. There is a
277urinal hanging on the wall, and some exposed pipes on the opposite
278wall where a sink used to be. To the north is a bedroom."
279 "Bathroom" ;35
280 )
281 (
282"This is a marker for the urinal. User will not see this, but it
283is a room that can contain objects."
284 "Urinal" ;36
285 )
286 (
287"You are at the northeast end of a northeast/southwest passageway.
288Stairs lead up out of sight."
289 "NE end of NE/SW cave passage" ;37
290 )
291 (
292"You are at the junction of northeast/southwest and east/west passages."
293 "NE/SW-E/W junction" ;38
294 )
295 (
296"You are at the southwest end of a northeast/southwest passageway."
297 "SW end of NE/SW cave passage" ;39
298 )
299 (
300"You are at the east end of an E/W passage. There are stairs leading up
301to a room above."
302 "East end of E/W cave passage" ;40
303 )
304 (
305"You are at the west end of an E/W passage. There is a hole on the ground
306which leads down out of sight."
307 "West end of E/W cave passage" ;41
308 )
309 (
310"You are in a room which is bare, except for a horseshoe shaped boulder
311in the center. Stairs lead down from here." ;42
312 "Horseshoe boulder room"
313 )
314 (
315"You are in a room which is completely empty. Doors lead out to the north
316and east."
317 "Empty room" ;43
318 )
319 (
320"You are in an empty room. Interestingly enough, the stones in this
321room are painted blue. Doors lead out to the east and south." ;44
322 "Blue room"
323 )
324 (
325"You are in an empty room. Interestingly enough, the stones in this
326room are painted yellow. Doors lead out to the south and west." ;45
327 "Yellow room"
328 )
329 (
330"You are in an empty room. Interestingly enough, the stones in this room
331are painted red. Doors lead out to the west and north."
332 "Red room" ;46
333 )
334 (
335"You are in the middle of a long north/south hallway." ;47
336 "Long n/s hallway"
337 )
338 (
339"You are 3/4 of the way towards the north end of a long north/south hallway."
340 "3/4 north" ;48
341 )
342 (
343"You are at the north end of a long north/south hallway. There are stairs
344leading upwards."
345 "North end of long hallway" ;49
346 )
347 (
348"You are 3/4 of the way towards the south end of a long north/south hallway."
349 "3/4 south" ;50
350 )
351 (
352"You are at the south end of a long north/south hallway. There is a hole
353to the south."
354 "South end of long hallway" ;51
355 )
356 (
357"You are at a landing in a stairwell which continues up and down."
358 "Stair landing" ;52
359 )
360 (
361"You are at the continuation of an up/down staircase."
362 "Up/down staircase" ;53
363 )
364 (
365"You are at the top of a staircase leading down. A crawlway leads off
366to the northeast."
367 "Top of staircase." ;54
368 )
369 (
370"You are in a crawlway that leads northeast or southwest."
371 "NE crawlway" ;55
372 )
373 (
374"You are in a small crawlspace. There is a hole in the ground here, and
375a small passage back to the southwest."
376 "Small crawlspace" ;56
377 )
378 (
379"You are in the Gamma Computing Center. An IBM 3090/600s is whirring
380away in here. There is an ethernet cable coming out of one of the units,
381and going through the ceiling. There is no console here on which you
382could type."
383 "Gamma computing center" ;57
384 )
385 (
386"You are near the remains of a post office. There is a mail drop on the
387face of the building, but you cannot see where it leads. A path leads
388back to the east, and a road leads to the north."
389 "Post office" ;58
390 )
391 (
392"You are at the intersection of Main Street and Maple Ave. Main street
393runs north and south, and Maple Ave runs east off into the distance.
394If you look north and east you can see many intersections, but all of
395the buildings that used to stand here are gone. Nothing remains except
396street signs.
397There is a road to the northwest leading to a gate that guards a building."
398 "Main-Maple intersection" ;59
399 )
400 (
401"You are at the intersection of Main Street and the west end of Oaktree Ave."
402 "Main-Oaktree intersection" ;60
403 )
404 (
405"You are at the intersection of Main Street and the west end of Vermont Ave."
406 "Main-Vermont intersection" ;61
407 )
408 (
409"You are at the north end of Main Street at the west end of Sycamore Ave." ;62
410 "Main-Sycamore intersection"
411 )
412 (
413"You are at the south end of First Street at Maple Ave." ;63
414 "First-Maple intersection"
415 )
416 (
417"You are at the intersection of First Street and Oaktree Ave." ;64
418 "First-Oaktree intersection"
419 )
420 (
421"You are at the intersection of First Street and Vermont Ave." ;65
422 "First-Vermont intersection"
423 )
424 (
425"You are at the north end of First Street at Sycamore Ave." ;66
426 "First-Sycamore intersection"
427 )
428 (
429"You are at the south end of Second Street at Maple Ave." ;67
430 "Second-Maple intersection"
431 )
432 (
433"You are at the intersection of Second Street and Oaktree Ave." ;68
434 "Second-Oaktree intersection"
435 )
436 (
437"You are at the intersection of Second Street and Vermont Ave." ;69
438 "Second-Vermont intersection"
439 )
440 (
441"You are at the north end of Second Street at Sycamore Ave." ;70
442 "Second-Sycamore intersection"
443 )
444 (
445"You are at the south end of Third Street at Maple Ave." ;71
446 "Third-Maple intersection"
447 )
448 (
449"You are at the intersection of Third Street and Oaktree Ave." ;72
450 "Third-Oaktree intersection"
451 )
452 (
453"You are at the intersection of Third Street and Vermont Ave." ;73
454 "Third-Vermont intersection"
455 )
456 (
457"You are at the north end of Third Street at Sycamore Ave." ;74
458 "Third-Sycamore intersection"
459 )
460 (
461"You are at the south end of Fourth Street at Maple Ave." ;75
462 "Fourth-Maple intersection"
463 )
464 (
465"You are at the intersection of Fourth Street and Oaktree Ave." ;76
466 "Fourth-Oaktree intersection"
467 )
468 (
469"You are at the intersection of Fourth Street and Vermont Ave." ;77
470 "Fourth-Vermont intersection"
471 )
472 (
473"You are at the north end of Fourth Street at Sycamore Ave." ;78
474 "Fourth-Sycamore intersection"
475 )
476 (
477"You are at the south end of Fifth Street at the east end of Maple Ave." ;79
478 "Fifth-Maple intersection"
479 )
480 (
481"You are at the intersection of Fifth Street and the east end of Oaktree Ave.
482There is a cliff off to the east."
483 "Fifth-Oaktree intersection" ;80
484 )
485 (
486"You are at the intersection of Fifth Street and the east end of Vermont Ave."
487 "Fifth-Vermont intersection" ;81
488 )
489 (
490"You are at the north end of Fifth Street and the east end of Sycamore Ave."
491 "Fifth-Sycamore intersection" ;82
492 )
493 (
494"You are in front of the Museum of Natural History. A door leads into
495the building to the north, and a road leads to the southeast."
496 "Museum entrance" ;83
497 )
498 (
499"You are in the main lobby for the Museum of Natural History. In the center
500of the room is the huge skeleton of a dinosaur. Doors lead out to the
501south and east."
502 "Museum lobby" ;84
503 )
504 (
505"You are in the geological display. All of the objects that used to
506be on display are missing. There are rooms to the east, west, and
507north."
508 "Geological display" ;85
509 )
510 (
511"You are in the marine life area. The room is filled with fish tanks,
512which are filled with dead fish that have apparently died due to
513starvation. Doors lead out to the south and east."
514 "Marine life area" ;86
515 )
516 (
517"You are in some sort of maintenance room for the museum. There is a
518switch on the wall labeled ‘BL’. There are doors to the west and north."
519 "Maintenance room" ;87
520 )
521 (
522"You are in a classroom where school children were taught about natural
523history. On the blackboard is written, ‘No children allowed downstairs.’
524There is a door to the east with an ‘exit’ sign on it. There is another
525door to the west."
526 "Classroom" ;88
527 )
528 (
529"You are at the Vermont St. subway station. A train is sitting here waiting."
530 "Vermont station" ;89
531 )
532 (
533"You are at the Museum subway stop. A passage leads off to the north."
534 "Museum station" ;90
535 )
536 (
537"You are in a north/south tunnel."
538 "N/S tunnel" ;91
539 )
540 (
541"You are at the north end of a north/south tunnel. Stairs lead up and
542down from here. There is a garbage disposal here."
543 "North end of N/S tunnel" ;92
544 )
545 (
546"You are at the top of some stairs near the subway station. There is
547a door to the west."
548 "Top of subway stairs" ;93
549 )
550 (
551"You are at the bottom of some stairs near the subway station. There is
552a room to the northeast."
553 "Bottom of subway stairs" ;94
554 )
555 (
556"You are in another computer room. There is a computer in here larger
557than you have ever seen. It has no manufacturers name on it, but it
558does have a sign that says: This machine's name is ‘endgame’. The
559exit is to the southwest. There is no console here on which you could
560type."
561 "Endgame computer room" ;95
562 )
563 (
564"You are in a north/south hallway."
565 "Endgame N/S hallway" ;96
566 )
567 (
568"You have reached a question room. You must answer a question correctly in
569order to get by. Use the ‘answer’ command to answer the question."
570 "Question room 1" ;97
571 )
572 (
573"You are in a north/south hallway."
574 "Endgame N/S hallway" ;98
575 )
576 (
577"You are in a second question room."
578 "Question room 2" ;99
579 )
580 (
581"You are in a north/south hallway."
582 "Endgame N/S hallway" ;100
583 )
584 (
585"You are in a third question room."
586 "Question room 3" ;101
587 )
588 (
589"You are in the endgame treasure room. A door leads out to the north, and
590a hallway leads to the south."
591 "Endgame treasure room" ;102
592 )
593 (
594"You are in the winner's room. A door leads back to the south."
595 "Winner's room" ;103
596 )
597 (
598"You have reached a dead end. There is a PC on the floor here. Above
599it is a sign that reads:
600 Type the ‘reset’ command to type on the PC.
601A hole leads north."
602 "PC area" ;104
603 )
604))
605
606(setq dun-light-rooms '(0 1 2 3 4 5 6 7 8 9 10 11 12 13 24 25 26 27 28 58 59
607 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
608 77 78 79 80 81 82 83))
609
610(setq dun-verblist '((die . dun-die) (ne . dun-ne) (north . dun-n)
611 (south . dun-s) (east . dun-e) (west . dun-w)
612 (u . dun-up) (d . dun-down) (i . dun-inven)
613 (inventory . dun-inven) (look . dun-examine) (n . dun-n)
614 (s . dun-s) (e . dun-e) (w . dun-w) (se . dun-se)
615 (nw . dun-nw) (sw . dun-sw) (up . dun-up)
616 (down . dun-down) (in . dun-in) (out . dun-out)
617 (go . dun-go) (drop . dun-drop) (southeast . dun-se)
618 (southwest . dun-sw) (northeast . dun-ne)
619 (northwest . dun-nw) (save . dun-save-game)
620 (restore . dun-restore) (long . dun-long) (dig . dun-dig)
621 (shake . dun-shake) (wave . dun-shake)
622 (examine . dun-examine) (describe . dun-examine)
623 (climb . dun-climb) (eat . dun-eat) (put . dun-put)
624 (type . dun-type) (insert . dun-put)
625 (score . dun-score) (help . dun-help) (quit . dun-quit)
626 (read . dun-examine) (verbose . dun-long)
627 (urinate . dun-piss) (piss . dun-piss)
628 (flush . dun-flush) (sleep . dun-sleep) (lie . dun-sleep)
629 (x . dun-examine) (break . dun-break) (drive . dun-drive)
630 (board . dun-in) (enter . dun-in) (turn . dun-turn)
631 (press . dun-press) (push . dun-press) (swim . dun-swim)
632 (on . dun-in) (off . dun-out) (chop . dun-break)
633 (switch . dun-press) (cut . dun-break) (exit . dun-out)
634 (leave . dun-out) (reset . dun-power) (flick . dun-press)
635 (superb . dun-superb) (answer . dun-answer)
636 (throw . dun-drop) (l . dun-examine) (take . dun-take)
637 (get . dun-take) (feed . dun-feed)))
638
639(setq dun-inbus nil)
640(setq dun-nomail nil)
641(setq dun-ignore '(the to at))
642(setq dun-mode 'moby)
643(setq dun-sauna-level 0)
644
645(defconst north 0)
646(defconst south 1)
647(defconst east 2)
648(defconst west 3)
649(defconst northeast 4)
650(defconst southeast 5)
651(defconst northwest 6)
652(defconst southwest 7)
653(defconst up 8)
654(defconst down 9)
655(defconst in 10)
656(defconst out 11)
657
658(setq dungeon-map '(
659; no so ea we ne se nw sw up do in ot
660 ( 96 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;0
661 ( -1 -1 2 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;1
662 ( -1 -1 3 1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;2
663 ( -1 -1 -1 2 4 6 -1 -1 -1 -1 -1 -1 ) ;3
664 ( -1 -1 -1 -1 5 -1 -1 3 -1 -1 -1 -1 ) ;4
665 ( -1 -1 -1 -1 255 -1 -1 4 -1 -1 255 -1 ) ;5
666 ( -1 -1 -1 -1 -1 7 3 -1 -1 -1 -1 -1 ) ;6
667 ( -1 -1 -1 -1 -1 255 6 27 -1 -1 -1 -1 ) ;7
668 ( 255 5 9 10 -1 -1 -1 5 -1 -1 -1 5 ) ;8
669 ( -1 -1 -1 8 -1 -1 -1 -1 -1 -1 -1 -1 ) ;9
670 ( -1 -1 8 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;10
671 ( -1 8 -1 58 -1 -1 -1 -1 -1 -1 -1 -1 ) ;11
672 ( -1 -1 13 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;12
673 ( 15 -1 14 12 -1 -1 -1 -1 -1 -1 -1 -1 ) ;13
674 ( -1 -1 -1 13 -1 -1 -1 -1 -1 -1 -1 -1 ) ;14
675 ( -1 13 16 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;15
676 ( -1 -1 -1 15 -1 -1 -1 -1 -1 17 16 -1 ) ;16
677 ( -1 -1 17 17 17 17 255 17 255 17 -1 -1 ) ;17
678 ( 18 18 18 18 18 -1 18 18 19 18 -1 -1 ) ;18
679 ( -1 18 18 19 19 20 19 19 -1 18 -1 -1 ) ;19
680 ( -1 -1 -1 18 -1 -1 -1 -1 -1 21 -1 -1 ) ;20
681 ( -1 -1 -1 -1 -1 20 22 -1 -1 -1 -1 -1 ) ;21
682 ( 18 18 18 18 16 18 23 18 18 18 18 18 ) ;22
683 ( -1 255 -1 -1 -1 19 -1 -1 -1 -1 -1 -1 ) ;23
684 ( 23 25 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;24
685 ( 24 255 -1 -1 -1 -1 -1 -1 -1 -1 255 -1 ) ;25
686 (255 28 -1 -1 -1 -1 -1 -1 -1 -1 255 -1 ) ;26
687 ( -1 -1 -1 -1 7 -1 -1 -1 -1 -1 -1 -1 ) ;27
688 ( 26 255 -1 -1 -1 -1 -1 -1 -1 -1 255 -1 ) ;28
689 ( -1 -1 30 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;29
690 ( -1 -1 31 29 -1 -1 -1 -1 -1 -1 -1 -1 ) ;30
691 ( 32 33 -1 30 -1 -1 -1 -1 -1 -1 -1 -1 ) ;31
692 ( -1 31 -1 255 -1 -1 -1 -1 -1 34 -1 -1 ) ;32
693 ( 31 -1 -1 -1 -1 -1 -1 -1 -1 35 -1 -1 ) ;33
694 ( -1 35 -1 -1 -1 -1 -1 -1 32 37 -1 -1 ) ;34
695 ( 34 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;35
696 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;36
697 ( -1 -1 -1 -1 -1 -1 -1 38 34 -1 -1 -1 ) ;37
698 ( -1 -1 40 41 37 -1 -1 39 -1 -1 -1 -1 ) ;38
699 ( -1 -1 -1 -1 38 -1 -1 -1 -1 -1 -1 -1 ) ;39
700 ( -1 -1 -1 38 -1 -1 -1 -1 42 -1 -1 -1 ) ;40
701 ( -1 -1 38 -1 -1 -1 -1 -1 -1 43 -1 -1 ) ;41
702 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 40 -1 -1 ) ;42
703 ( 44 -1 46 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;43
704 ( -1 43 45 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;44
705 ( -1 46 -1 44 -1 -1 -1 -1 -1 -1 -1 -1 ) ;45
706 ( 45 -1 -1 43 -1 -1 -1 -1 -1 255 -1 -1 ) ;46
707 ( 48 50 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;47
708 ( 49 47 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;48
709 ( -1 48 -1 -1 -1 -1 -1 -1 52 -1 -1 -1 ) ;49
710 ( 47 51 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;50
711 ( 50 104 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;51
712 ( -1 -1 -1 -1 -1 -1 -1 -1 53 49 -1 -1 ) ;52
713 ( -1 -1 -1 -1 -1 -1 -1 -1 54 52 -1 -1 ) ;53
714 ( -1 -1 -1 -1 55 -1 -1 -1 -1 53 -1 -1 ) ;54
715 ( -1 -1 -1 -1 56 -1 -1 54 -1 -1 -1 54 ) ;55
716 ( -1 -1 -1 -1 -1 -1 -1 55 -1 31 -1 -1 ) ;56
717 ( -1 -1 32 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;57
718 ( 59 -1 11 -1 -1 -1 -1 -1 -1 -1 255 255) ;58
719 ( 60 58 63 -1 -1 -1 255 -1 -1 -1 255 255) ;59
720 ( 61 59 64 -1 -1 -1 -1 -1 -1 -1 255 255) ;60
721 ( 62 60 65 -1 -1 -1 -1 -1 -1 -1 255 255) ;61
722 ( -1 61 66 -1 -1 -1 -1 -1 -1 -1 255 255) ;62
723 ( 64 -1 67 59 -1 -1 -1 -1 -1 -1 255 255) ;63
724 ( 65 63 68 60 -1 -1 -1 -1 -1 -1 255 255) ;64
725 ( 66 64 69 61 -1 -1 -1 -1 -1 -1 255 255) ;65
726 ( -1 65 70 62 -1 -1 -1 -1 -1 -1 255 255) ;66
727 ( 68 -1 71 63 -1 -1 -1 -1 -1 -1 255 255) ;67
728 ( 69 67 72 64 -1 -1 -1 -1 -1 -1 255 255) ;68
729 ( 70 68 73 65 -1 -1 -1 -1 -1 -1 255 255) ;69
730 ( -1 69 74 66 -1 -1 -1 -1 -1 -1 255 255) ;70
731 ( 72 -1 75 67 -1 -1 -1 -1 -1 -1 255 255) ;71
732 ( 73 71 76 68 -1 -1 -1 -1 -1 -1 255 255) ;72
733 ( 74 72 77 69 -1 -1 -1 -1 -1 -1 255 255) ;73
734 ( -1 73 78 70 -1 -1 -1 -1 -1 -1 255 255) ;74
735 ( 76 -1 79 71 -1 -1 -1 -1 -1 -1 255 255) ;75
736 ( 77 75 80 72 -1 -1 -1 -1 -1 -1 255 255) ;76
737 ( 78 76 81 73 -1 -1 -1 -1 -1 -1 255 255) ;77
738 ( -1 77 82 74 -1 -1 -1 -1 -1 -1 255 255) ;78
739 ( 80 -1 -1 75 -1 -1 -1 -1 -1 -1 255 255) ;79
740 ( 81 79 255 76 -1 -1 -1 -1 -1 -1 255 255) ;80
741 ( 82 80 -1 77 -1 -1 -1 -1 -1 -1 255 255) ;81
742 ( -1 81 -1 78 -1 -1 -1 -1 -1 -1 255 255) ;82
743 ( 84 -1 -1 -1 -1 59 -1 -1 -1 -1 255 255) ;83
744 ( -1 83 85 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;84
745 ( 86 -1 87 84 -1 -1 -1 -1 -1 -1 -1 -1 ) ;85
746 ( -1 85 88 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;86
747 ( 88 -1 -1 85 -1 -1 -1 -1 -1 -1 -1 -1 ) ;87
748 ( -1 87 255 86 -1 -1 -1 -1 -1 -1 -1 -1 ) ;88
749 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 255 -1 ) ;89
750 ( 91 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;90
751 ( 92 90 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;91
752 ( -1 91 -1 -1 -1 -1 -1 -1 93 94 -1 -1 ) ;92
753 ( -1 -1 -1 88 -1 -1 -1 -1 -1 92 -1 -1 ) ;93
754 ( -1 -1 -1 -1 95 -1 -1 -1 92 -1 -1 -1 ) ;94
755 ( -1 -1 -1 -1 -1 -1 -1 94 -1 -1 -1 -1 ) ;95
756 ( 97 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;96
757 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;97
758 ( 99 97 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;98
759 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;99
760 ( 101 99 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;100
761 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;101
762 ( 103 101 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;102
763 ( -1 102 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;103
764 ( 51 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;104
765 )
766; no so ea we ne se nw sw up do in ot
767)
768
769
770;;; How the user references *all* objects, permanent and regular.
771(setq dun-objnames '(
772 (shovel . 0)
773 (lamp . 1)
774 (cpu . 2) (board . 2) (card . 2) (chip . 2)
775 (food . 3)
776 (key . 4)
777 (paper . 5) (slip . 5)
778 (rms . 6) (statue . 6) (statuette . 6) (stallman . 6)
779 (diamond . 7)
780 (weight . 8)
781 (life . 9) (preserver . 9)
782 (bracelet . 10) (emerald . 10)
783 (gold . 11)
784 (platinum . 12)
785 (towel . 13) (beach . 13)
786 (axe . 14)
787 (silver . 15)
788 (license . 16)
789 (coins . 17)
790 (egg . 18)
791 (jar . 19)
792 (bone . 20)
793 (acid . 21) (nitric . 21)
794 (glycerine . 22)
795 (ruby . 23)
796 (amethyst . 24)
797 (mona . 25)
798 (bill . 26)
799 (floppy . 27) (disk . 27)
800
801 (boulder . -1)
802 (tree . -2) (trees . -2) (palm . -2)
803 (bear . -3)
804 (bin . -4) (bins . -4)
805 (cabinet . -5) (computer . -5) (vax . -5) (ibm . -5)
806 (protoplasm . -6)
807 (dial . -7)
808 (button . -8)
809 (chute . -9)
810 (painting . -10)
811 (bed . -11)
812 (urinal . -12)
813 (URINE . -13)
814 (pipes . -14) (pipe . -14)
815 (box . -15) (slit . -15)
816 (cable . -16) (ethernet . -16)
817 (mail . -17) (drop . -17)
818 (bus . -18)
819 (gate . -19)
820 (cliff . -20)
821 (skeleton . -21) (dinosaur . -21)
822 (fish . -22)
823 (tanks . -23) (tank . -23)
824 (switch . -24)
825 (blackboard . -25)
826 (disposal . -26) (garbage . -26)
827 (ladder . -27)
828 (subway . -28) (train . -28)
829 (pc . -29) (drive . -29) (coconut . -30) (coconuts . -30)
830 (lake . -32) (water . -32)
831))
832
833(dolist (x dun-objnames)
834 (let (name)
835 (setq name (concat "obj-" (prin1-to-string (car x))))
836 (eval (list 'defconst (intern name) (cdr x)))))
837
838(defconst obj-special 255)
839
840;;; The initial setup of what objects are in each room.
841;;; Regular objects have whole numbers lower than 255.
842;;; Objects that cannot be taken but might move and are
843;;; described during room description are negative.
844;;; Stuff that is described and might change are 255, and are
845;;; handled specially by 'dun-describe-room.
846
847(setq dun-room-objects (list nil
848
849 (list obj-shovel) ;; treasure-room
850 (list obj-boulder) ;; dead-end
851 nil nil nil
852 (list obj-food) ;; se-nw-road
853 (list obj-bear) ;; bear-hangout
854 nil nil
855 (list obj-special) ;; computer-room
856 (list obj-lamp obj-license obj-silver);; meadow
857 nil nil
858 (list obj-special) ;; sauna
859 nil
860 (list obj-weight obj-life) ;; weight-room
861 nil nil
862 (list obj-rms obj-floppy) ;; thirsty-maze
863 nil nil nil nil nil nil nil
864 (list obj-emerald) ;; hidden-area
865 nil
866 (list obj-gold) ;; misty-room
867 nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
868 (list obj-towel obj-special) ;; red-room
869 nil nil nil nil nil
870 (list obj-box) ;; stair-landing
871 nil nil nil
872 (list obj-axe) ;; small-crawlspace
873 nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
874 nil nil nil nil nil
875 (list obj-special) ;; fourth-vermont-intersection
876 nil nil
877 (list obj-coins) ;; fifth-oaktree-intersection
878 nil
879 (list obj-bus) ;; fifth-sycamore-intersection
880 nil
881 (list obj-bone) ;; museum-lobby
882 nil
883 (list obj-jar obj-special obj-ruby) ;; marine-life-area
884 (list obj-nitric) ;; maintenance-room
885 (list obj-glycerine) ;; classroom
886 nil nil nil nil nil
887 (list obj-amethyst) ;; bottom-of-subway-stairs
888 nil nil
889 (list obj-special) ;; question-room-1
890 nil
891 (list obj-special) ;; question-room-2
892 nil
893 (list obj-special) ;; question-room-three
894 nil
895 (list obj-mona) ;; winner's-room
896nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
897nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
898nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
899nil))
900
901;;; These are objects in a room that are only described in the
902;;; room description. They are permanent.
903
904(setq dun-room-silents (list nil
905 (list obj-tree obj-coconut) ;; dead-end
906 (list obj-tree obj-coconut) ;; e-w-dirt-road
907 nil nil nil nil nil nil
908 (list obj-bin) ;; mailroom
909 (list obj-computer) ;; computer-room
910 nil nil nil
911 (list obj-dial) ;; sauna
912 nil
913 (list obj-ladder) ;; weight-room
914 (list obj-button obj-ladder) ;; maze-button-room
915 nil nil nil
916 nil nil nil nil
917 (list obj-lake) ;; lakefront-north
918 (list obj-lake) ;; lakefront-south
919 nil
920 (list obj-chute) ;; cave-entrance
921 nil nil nil nil nil
922 (list obj-painting obj-bed) ;; bedroom
923 (list obj-urinal obj-pipes) ;; bathroom
924 nil nil nil nil nil nil
925 (list obj-boulder) ;; horseshoe-boulder-room
926 nil nil nil nil nil nil nil nil nil nil nil nil nil nil
927 (list obj-computer obj-cable) ;; gamma-computing-center
928 (list obj-mail) ;; post-office
929 (list obj-gate) ;; main-maple-intersection
930 nil nil nil nil nil nil nil nil nil nil nil nil nil
931 nil nil nil nil nil nil nil
932 (list obj-cliff) ;; fifth-oaktree-intersection
933 nil nil nil
934 (list obj-dinosaur) ;; museum-lobby
935 nil
936 (list obj-fish obj-tanks) ;; marine-life-area
937 (list obj-switch) ;; maintenance-room
938 (list obj-blackboard) ;; classroom
939 (list obj-train) ;; vermont-station
940 nil nil
941 (list obj-disposal) ;; north-end-of-n-s-tunnel
942 nil nil
943 (list obj-computer) ;; endgame-computer-room
944 nil nil nil nil nil nil nil nil
945 (list obj-pc) ;; pc-area
946 nil nil nil nil nil nil
947))
948(setq dun-inventory '(1))
949
950;;; Descriptions of objects, as they appear in the room description, and
951;;; the inventory.
952
953(setq dun-objects '(
954 ("There is a shovel here." "A shovel") ;0
955 ("There is a lamp nearby." "A lamp") ;1
956 ("There is a CPU card here." "A computer board") ;2
957 ("There is some food here." "Some food") ;3
958 ("There is a shiny brass key here." "A brass key") ;4
959 ("There is a slip of paper here." "A slip of paper") ;5
960 ("There is a wax statuette of Richard Stallman here." ;6
961 "An RMS statuette")
962 ("There is a shimmering diamond here." "A diamond") ;7
963 ("There is a 10 pound weight here." "A weight") ;8
964 ("There is a life preserver here." "A life preserver");9
965 ("There is an emerald bracelet here." "A bracelet") ;10
966 ("There is a gold bar here." "A gold bar") ;11
967 ("There is a platinum bar here." "A platinum bar") ;12
968 ("There is a beach towel on the ground here." "A beach towel")
969 ("There is an axe here." "An axe") ;14
970 ("There is a silver bar here." "A silver bar") ;15
971 ("There is a bus driver's license here." "A license") ;16
972 ("There are some valuable coins here." "Some valuable coins")
973 ("There is a jewel-encrusted egg here." "A valuable egg") ;18
974 ("There is a glass jar here." "A glass jar") ;19
975 ("There is a dinosaur bone here." "A bone") ;20
976 ("There is a packet of nitric acid here." "Some nitric acid")
977 ("There is a packet of glycerine here." "Some glycerine") ;22
978 ("There is a valuable ruby here." "A ruby") ;23
979 ("There is a valuable amethyst here." "An amethyst") ;24
980 ("The Mona Lisa is here." "The Mona Lisa") ;25
981 ("There is a 100 dollar bill here." "A $100 bill") ;26
982 ("There is a floppy disk here." "A floppy disk") ;27
983 )
984)
985
986;;; Weight of objects
987
988(setq dun-object-lbs
989 '(2 1 1 1 1 0 2 2 10 3 1 1 1 0 1 1 0 1 1 1 1 0 0 2 2 1 0 0))
990(setq dun-object-pts
991 '(0 0 0 0 0 0 0 10 0 0 10 10 10 0 0 10 0 10 10 0 0 0 0 10 10 10 10 0))
992
993
994;;; Unix representation of objects.
995(setq dun-objfiles '(
996 "shovel.o" "lamp.o" "cpu.o" "food.o" "key.o" "paper.o"
997 "rms.o" "diamond.o" "weight.o" "preserver.o" "bracelet.o"
998 "gold.o" "platinum.o" "towel.o" "axe.o" "silver.o" "license.o"
999 "coins.o" "egg.o" "jar.o" "bone.o" "nitric.o" "glycerine.o"
1000 "ruby.o" "amethyst.o"
1001 ))
1002
1003;;; These are the descriptions for the negative numbered objects from
1004;;; dun-room-objects
1005
1006(setq dun-perm-objects '(
1007 nil
1008 ("There is a large boulder here.")
1009 nil
1010 ("There is a ferocious bear here!")
1011 nil
1012 nil
1013 ("There is a worthless pile of protoplasm here.")
1014 nil
1015 nil
1016 nil
1017 nil
1018 nil
1019 nil
1020 ("There is a strange smell in this room.")
1021 nil
1022 (
1023"There is a box with a slit in it, bolted to the wall here."
1024 )
1025 nil
1026 nil
1027 ("There is a bus here.")
1028 nil
1029 nil
1030 nil
1031))
1032
1033
1034;;; These are the descriptions the user gets when regular objects are
1035;;; examined.
1036
1037(setq dun-physobj-desc '(
1038"It is a normal shovel with a price tag attached that says $19.99."
1039"The lamp is hand-crafted by Geppetto."
1040"The CPU board has a VAX chip on it. It seems to have
10412 Megabytes of RAM onboard."
1042"It looks like some kind of meat. Smells pretty bad."
1043nil
1044"The paper says: Don't forget to type ‘help’ for help. Also, remember
1045this word: ‘worms’"
1046"The statuette is of the likeness of Richard Stallman, the author of the
1047famous EMACS editor. You notice that he is not wearing any shoes."
1048nil
1049"You observe that the weight is heavy."
1050"It says S. S. Minnow."
1051nil
1052nil
1053nil
1054"It has a picture of snoopy on it."
1055nil
1056nil
1057"It has your picture on it!"
1058"They are old coins from the 19th century."
1059"It is a valuable Fabrege egg."
1060"It is a plain glass jar."
1061nil
1062nil
1063nil
1064nil
1065nil
1066 )
1067)
1068
1069;;; These are the descriptions the user gets when non-regular objects
1070;;; are examined.
1071
1072(setq dun-permobj-desc '(
1073 nil
1074"It is just a boulder. It cannot be moved."
1075"They are palm trees with a bountiful supply of coconuts in them."
1076"It looks like a grizzly to me."
1077"All of the bins are empty. Looking closely you can see that there
1078are names written at the bottom of each bin, but most of them are
1079faded away so that you cannot read them. You can only make out three
1080names:
1081 Jeffrey Collier
1082 Robert Toukmond
1083 Thomas Stock
1084"
1085 nil
1086"It is just a garbled mess."
1087"The dial points to a temperature scale which has long since faded away."
1088nil
1089nil
1090"It is a velvet painting of Elvis Presley. It seems to be nailed to the
1091wall, and you cannot move it."
1092"It is a queen sized bed, with a very firm mattress."
1093"The urinal is very clean compared with everything else in the cave. There
1094isn't even any rust. Upon close examination you realize that the drain at the
1095bottom is missing, and there is just a large hole leading down the
1096pipes into nowhere. The hole is too small for a person to fit in. The
1097flush handle is so clean that you can see your reflection in it."
1098nil
1099nil
1100"The box has a slit in the top of it, and on it, in sloppy handwriting, is
1101written: ‘For key upgrade, put key in here.’"
1102nil
1103"It says ‘express mail’ on it."
1104"It is a 35 passenger bus with the company name ‘mobytours’ on it."
1105"It is a large metal gate that is too big to climb over."
1106"It is a HIGH cliff."
1107"Unfortunately you do not know enough about dinosaurs to tell very much about
1108it. It is very big, though."
1109"The fish look like they were once quite beautiful."
1110nil
1111nil
1112nil
1113nil
1114"It is a normal ladder that is permanently attached to the hole."
1115"It is a passenger train that is ready to go."
1116"It is a personal computer that has only one floppy disk drive."
1117 )
1118)
1119
1120(setq dun-diggables
1121 (list nil nil nil (list obj-cpu) nil nil nil nil nil nil nil
1122 nil nil nil nil nil nil nil nil nil nil ;11-20
1123 nil nil nil nil nil nil nil nil nil nil ;21-30
1124 nil nil nil nil nil nil nil nil nil nil ;31-40
1125 nil (list obj-platinum) nil nil nil nil nil nil nil nil))
1126
1127(setq dun-room-shorts nil)
1128
1129(setq dun-endgame-questions '(
1130 (
1131"What is your password on the machine called ‘pokey’?" "robert")
1132 (
1133"What password did you use during anonymous ftp to gamma?" "foo")
1134 (
1135"Excluding the endgame, how many places are there where you can put
1136treasures for points?" "4" "four")
1137 (
1138"What is your login name on the ‘endgame’ machine?" "toukmond"
1139)
1140 (
1141"What is the nearest whole dollar to the price of the shovel?" "20" "twenty")
1142 (
1143"What is the name of the bus company serving the town?" "mobytours")
1144 (
1145"Give either of the two last names in the mailroom, other than your own."
1146"collier" "stock")
1147 (
1148"What cartoon character is on the towel?" "snoopy")
1149 (
1150"What is the last name of the author of EMACS?" "stallman")
1151 (
1152"How many megabytes of memory is on the CPU board for the Vax?" "2")
1153 (
1154"Which street in town is named after a U.S. state?" "vermont")
1155 (
1156"How many pounds did the weight weigh?" "ten" "10")
1157 (
1158"Name the STREET which runs right over the subway stop." "fourth" "4" "4th")
1159 (
1160"How many corners are there in town (excluding the one with the Post Office)?"
1161 "24" "twentyfour" "twenty-four")
1162 (
1163"What type of bear was hiding your key?" "grizzly")
1164 (
1165"Name either of the two objects you found by digging." "cpu" "card" "vax"
1166"board" "platinum")
1167 (
1168"What network protocol is used between pokey and gamma?" "tcp/ip" "ip" "tcp")
1169))
1170
1171
46;;;; Mode definitions for interactive mode 1172;;;; Mode definitions for interactive mode
47 1173
48(define-derived-mode dun-mode text-mode "Dungeon" 1174(define-derived-mode dun-mode text-mode "Dungeon"
@@ -1324,16 +2450,9 @@ for a moment, then straighten yourself up.
1324 (rot13-region (point-min) (point-max))) 2450 (rot13-region (point-min) (point-max)))
1325 2451
1326;;;; 2452;;;;
1327;;;; This section defines the globals that are used in dunnet. 2453;;;; This section sets up the keymaps for interactive and batch dunnet.
1328;;;; 2454;;;;
1329;;;; IMPORTANT
1330;;;; All globals which can change must be saved from 'save-game. Add
1331;;;; all new globals to bottom of file.
1332 2455
1333(setq dun-visited '(27))
1334(setq dun-current-room 1)
1335(setq dun-exitf nil)
1336(setq dun-badcd nil)
1337(define-obsolete-variable-alias 'dungeon-mode-map 'dun-mode-map "22.1") 2456(define-obsolete-variable-alias 'dungeon-mode-map 'dun-mode-map "22.1")
1338(define-key dun-mode-map "\r" 'dun-parse) 2457(define-key dun-mode-map "\r" 'dun-parse)
1339(defvar dungeon-batch-map (make-keymap)) 2458(defvar dungeon-batch-map (make-keymap))
@@ -1348,1133 +2467,19 @@ for a moment, then straighten yourself up.
1348 (aset (car (cdr dungeon-batch-map)) n 'dungeon-nil)))) 2467 (aset (car (cdr dungeon-batch-map)) n 'dungeon-nil))))
1349(define-key dungeon-batch-map "\r" 'exit-minibuffer) 2468(define-key dungeon-batch-map "\r" 'exit-minibuffer)
1350(define-key dungeon-batch-map "\n" 'exit-minibuffer) 2469(define-key dungeon-batch-map "\n" 'exit-minibuffer)
1351(setq dun-computer nil)
1352(setq dun-floppy nil)
1353(setq dun-key-level 0)
1354(setq dun-hole nil)
1355(setq dun-correct-answer nil)
1356(setq dun-lastdir 0)
1357(setq dun-numsaves 0)
1358(setq dun-jar nil)
1359(setq dun-dead nil)
1360(setq room 0)
1361(setq dun-numcmds 0)
1362(setq dun-wizard nil)
1363(setq dun-endgame-question nil)
1364(setq dun-logged-in nil)
1365(setq dungeon-mode 'dungeon)
1366(setq dun-unix-verbs '((ls . dun-ls) (ftp . dun-ftp) (echo . dun-echo)
1367 (exit . dun-uexit) (cd . dun-cd) (pwd . dun-pwd)
1368 (rlogin . dun-rlogin) (ssh . dun-rlogin)
1369 (uncompress . dun-uncompress) (cat . dun-cat)))
1370
1371(setq dun-dos-verbs '((dir . dun-dos-dir) (type . dun-dos-type)
1372 (exit . dun-dos-exit) (command . dun-dos-spawn)
1373 (b: . dun-dos-invd) (c: . dun-dos-invd)
1374 (a: . dun-dos-nil)))
1375
1376
1377(setq dun-batch-mode nil)
1378
1379(setq dun-cdpath "/usr/toukmond")
1380(setq dun-cdroom -10)
1381(setq dun-uncompressed nil)
1382(setq dun-ethernet t)
1383(setq dun-restricted
1384 '(dun-room-objects dungeon-map dun-rooms
1385 dun-room-silents dun-combination))
1386(setq dun-ftptype 'ascii)
1387(setq dun-endgame nil)
1388(setq dun-gottago t)
1389(setq dun-black nil)
1390
1391(setq dun-rooms '(
1392 (
1393"You are in the treasure room. A door leads out to the north."
1394 "Treasure room"
1395 )
1396 (
1397"You are at a dead end of a dirt road. The road goes to the east.
1398In the distance you can see that it will eventually fork off. The
1399trees here are very tall royal palms, and they are spaced equidistant
1400from each other."
1401 "Dead end"
1402 )
1403 (
1404"You are on the continuation of a dirt road. There are more trees on
1405both sides of you. The road continues to the east and west."
1406 "E/W Dirt road"
1407 )
1408 (
1409"You are at a fork of two passages, one to the northeast, and one to the
1410southeast. The ground here seems very soft. You can also go back west."
1411 "Fork"
1412 )
1413 (
1414"You are on a northeast/southwest road."
1415 "NE/SW road"
1416 )
1417 (
1418"You are at the end of the road. There is a building in front of you
1419to the northeast, and the road leads back to the southwest."
1420 "Building front"
1421 )
1422 (
1423"You are on a southeast/northwest road."
1424 "SE/NW road"
1425 )
1426 (
1427"You are standing at the end of a road. A passage leads back to the
1428northwest."
1429 "Bear hangout"
1430 )
1431 (
1432"You are in the hallway of an old building. There are rooms to the east
1433and west, and doors leading out to the north and south."
1434 "Old Building hallway"
1435 )
1436 (
1437"You are in a mailroom. There are many bins where the mail is usually
1438kept. The exit is to the west."
1439 "Mailroom"
1440 )
1441 (
1442"You are in a computer room. It seems like most of the equipment has
1443been removed. There is a VAX 11/780 in front of you, however, with
1444one of the cabinets wide open. A sign on the front of the machine
1445says: This VAX is named ‘pokey’. To type on the console, use the
1446‘type’ command. The exit is to the east."
1447 "Computer room"
1448 )
1449 (
1450"You are in a meadow in the back of an old building. A small path leads
1451to the west, and a door leads to the south."
1452 "Meadow"
1453 )
1454 (
1455"You are in a round, stone room with a door to the east. There
1456is a sign on the wall that reads: ‘receiving room’."
1457 "Receiving room"
1458 )
1459 (
1460"You are at the south end of a hallway that leads to the north. There
1461are rooms to the east and west."
1462 "Northbound Hallway"
1463 )
1464 (
1465"You are in a sauna. There is nothing in the room except for a dial
1466on the wall. A door leads out to west."
1467 "Sauna"
1468 )
1469 (
1470"You are at the end of a north/south hallway. You can go back to the south,
1471or off to a room to the east."
1472 "End of N/S Hallway"
1473 )
1474 (
1475"You are in an old weight room. All of the equipment is either destroyed
1476or completely broken. There is a door out to the west, and there is a ladder
1477leading down a hole in the floor."
1478 "Weight room" ;16
1479 )
1480 (
1481"You are in a maze of twisty little passages, all alike.
1482There is a button on the ground here."
1483 "Maze button room"
1484 )
1485 (
1486"You are in a maze of little twisty passages, all alike."
1487 "Maze"
1488 )
1489 (
1490"You are in a maze of thirsty little passages, all alike."
1491 "Maze" ;19
1492 )
1493 (
1494"You are in a maze of twenty little passages, all alike."
1495 "Maze"
1496 )
1497 (
1498"You are in a daze of twisty little passages, all alike."
1499 "Maze" ;21
1500 )
1501 (
1502"You are in a maze of twisty little cabbages, all alike."
1503 "Maze" ;22
1504 )
1505 (
1506"You are in a reception area for a health and fitness center. The place
1507appears to have been recently ransacked, and nothing is left. There is
1508a door out to the south, and a crawlspace to the southeast."
1509 "Reception area"
1510 )
1511 (
1512"You are outside a large building to the north which used to be a health
1513and fitness center. A road leads to the south."
1514 "Health Club front"
1515 )
1516 (
1517"You are at the north side of a lake. On the other side you can see
1518a road which leads to a cave. The water appears very deep."
1519 "Lakefront North"
1520 )
1521 (
1522"You are at the south side of a lake. A road goes to the south."
1523 "Lakefront South"
1524 )
1525 (
1526"You are in a well-hidden area off to the side of a road. Back to the
1527northeast through the brush you can see the bear hangout."
1528 "Hidden area"
1529 )
1530 (
1531"The entrance to a cave is to the south. To the north, a road leads
1532towards a deep lake. On the ground nearby there is a chute, with a sign
1533that says ‘put treasures here for points’."
1534 "Cave Entrance" ;28
1535 )
1536 (
1537"You are in a misty, humid room carved into a mountain.
1538To the north is the remains of a rockslide. To the east, a small
1539passage leads away into the darkness." ;29
1540 "Misty Room"
1541 )
1542 (
1543"You are in an east/west passageway. The walls here are made of
1544multicolored rock and are quite beautiful."
1545 "Cave E/W passage" ;30
1546 )
1547 (
1548"You are at the junction of two passages. One goes north/south, and
1549the other goes west."
1550 "N/S/W Junction" ;31
1551 )
1552 (
1553"You are at the north end of a north/south passageway. There are stairs
1554leading down from here. There is also a door leading west."
1555 "North end of cave passage" ;32
1556 )
1557 (
1558"You are at the south end of a north/south passageway. There is a hole
1559in the floor here, into which you could probably fit."
1560 "South end of cave passage" ;33
1561 )
1562 (
1563"You are in what appears to be a worker's bedroom. There is a queen-
1564sized bed in the middle of the room, and a painting hanging on the
1565wall. A door leads to another room to the south, and stairways
1566lead up and down."
1567 "Bedroom" ;34
1568 )
1569 (
1570"You are in a bathroom built for workers in the cave. There is a
1571urinal hanging on the wall, and some exposed pipes on the opposite
1572wall where a sink used to be. To the north is a bedroom."
1573 "Bathroom" ;35
1574 )
1575 (
1576"This is a marker for the urinal. User will not see this, but it
1577is a room that can contain objects."
1578 "Urinal" ;36
1579 )
1580 (
1581"You are at the northeast end of a northeast/southwest passageway.
1582Stairs lead up out of sight."
1583 "NE end of NE/SW cave passage" ;37
1584 )
1585 (
1586"You are at the junction of northeast/southwest and east/west passages."
1587 "NE/SW-E/W junction" ;38
1588 )
1589 (
1590"You are at the southwest end of a northeast/southwest passageway."
1591 "SW end of NE/SW cave passage" ;39
1592 )
1593 (
1594"You are at the east end of an E/W passage. There are stairs leading up
1595to a room above."
1596 "East end of E/W cave passage" ;40
1597 )
1598 (
1599"You are at the west end of an E/W passage. There is a hole on the ground
1600which leads down out of sight."
1601 "West end of E/W cave passage" ;41
1602 )
1603 (
1604"You are in a room which is bare, except for a horseshoe shaped boulder
1605in the center. Stairs lead down from here." ;42
1606 "Horseshoe boulder room"
1607 )
1608 (
1609"You are in a room which is completely empty. Doors lead out to the north
1610and east."
1611 "Empty room" ;43
1612 )
1613 (
1614"You are in an empty room. Interestingly enough, the stones in this
1615room are painted blue. Doors lead out to the east and south." ;44
1616 "Blue room"
1617 )
1618 (
1619"You are in an empty room. Interestingly enough, the stones in this
1620room are painted yellow. Doors lead out to the south and west." ;45
1621 "Yellow room"
1622 )
1623 (
1624"You are in an empty room. Interestingly enough, the stones in this room
1625are painted red. Doors lead out to the west and north."
1626 "Red room" ;46
1627 )
1628 (
1629"You are in the middle of a long north/south hallway." ;47
1630 "Long n/s hallway"
1631 )
1632 (
1633"You are 3/4 of the way towards the north end of a long north/south hallway."
1634 "3/4 north" ;48
1635 )
1636 (
1637"You are at the north end of a long north/south hallway. There are stairs
1638leading upwards."
1639 "North end of long hallway" ;49
1640 )
1641 (
1642"You are 3/4 of the way towards the south end of a long north/south hallway."
1643 "3/4 south" ;50
1644 )
1645 (
1646"You are at the south end of a long north/south hallway. There is a hole
1647to the south."
1648 "South end of long hallway" ;51
1649 )
1650 (
1651"You are at a landing in a stairwell which continues up and down."
1652 "Stair landing" ;52
1653 )
1654 (
1655"You are at the continuation of an up/down staircase."
1656 "Up/down staircase" ;53
1657 )
1658 (
1659"You are at the top of a staircase leading down. A crawlway leads off
1660to the northeast."
1661 "Top of staircase." ;54
1662 )
1663 (
1664"You are in a crawlway that leads northeast or southwest."
1665 "NE crawlway" ;55
1666 )
1667 (
1668"You are in a small crawlspace. There is a hole in the ground here, and
1669a small passage back to the southwest."
1670 "Small crawlspace" ;56
1671 )
1672 (
1673"You are in the Gamma Computing Center. An IBM 3090/600s is whirring
1674away in here. There is an ethernet cable coming out of one of the units,
1675and going through the ceiling. There is no console here on which you
1676could type."
1677 "Gamma computing center" ;57
1678 )
1679 (
1680"You are near the remains of a post office. There is a mail drop on the
1681face of the building, but you cannot see where it leads. A path leads
1682back to the east, and a road leads to the north."
1683 "Post office" ;58
1684 )
1685 (
1686"You are at the intersection of Main Street and Maple Ave. Main street
1687runs north and south, and Maple Ave runs east off into the distance.
1688If you look north and east you can see many intersections, but all of
1689the buildings that used to stand here are gone. Nothing remains except
1690street signs.
1691There is a road to the northwest leading to a gate that guards a building."
1692 "Main-Maple intersection" ;59
1693 )
1694 (
1695"You are at the intersection of Main Street and the west end of Oaktree Ave."
1696 "Main-Oaktree intersection" ;60
1697 )
1698 (
1699"You are at the intersection of Main Street and the west end of Vermont Ave."
1700 "Main-Vermont intersection" ;61
1701 )
1702 (
1703"You are at the north end of Main Street at the west end of Sycamore Ave." ;62
1704 "Main-Sycamore intersection"
1705 )
1706 (
1707"You are at the south end of First Street at Maple Ave." ;63
1708 "First-Maple intersection"
1709 )
1710 (
1711"You are at the intersection of First Street and Oaktree Ave." ;64
1712 "First-Oaktree intersection"
1713 )
1714 (
1715"You are at the intersection of First Street and Vermont Ave." ;65
1716 "First-Vermont intersection"
1717 )
1718 (
1719"You are at the north end of First Street at Sycamore Ave." ;66
1720 "First-Sycamore intersection"
1721 )
1722 (
1723"You are at the south end of Second Street at Maple Ave." ;67
1724 "Second-Maple intersection"
1725 )
1726 (
1727"You are at the intersection of Second Street and Oaktree Ave." ;68
1728 "Second-Oaktree intersection"
1729 )
1730 (
1731"You are at the intersection of Second Street and Vermont Ave." ;69
1732 "Second-Vermont intersection"
1733 )
1734 (
1735"You are at the north end of Second Street at Sycamore Ave." ;70
1736 "Second-Sycamore intersection"
1737 )
1738 (
1739"You are at the south end of Third Street at Maple Ave." ;71
1740 "Third-Maple intersection"
1741 )
1742 (
1743"You are at the intersection of Third Street and Oaktree Ave." ;72
1744 "Third-Oaktree intersection"
1745 )
1746 (
1747"You are at the intersection of Third Street and Vermont Ave." ;73
1748 "Third-Vermont intersection"
1749 )
1750 (
1751"You are at the north end of Third Street at Sycamore Ave." ;74
1752 "Third-Sycamore intersection"
1753 )
1754 (
1755"You are at the south end of Fourth Street at Maple Ave." ;75
1756 "Fourth-Maple intersection"
1757 )
1758 (
1759"You are at the intersection of Fourth Street and Oaktree Ave." ;76
1760 "Fourth-Oaktree intersection"
1761 )
1762 (
1763"You are at the intersection of Fourth Street and Vermont Ave." ;77
1764 "Fourth-Vermont intersection"
1765 )
1766 (
1767"You are at the north end of Fourth Street at Sycamore Ave." ;78
1768 "Fourth-Sycamore intersection"
1769 )
1770 (
1771"You are at the south end of Fifth Street at the east end of Maple Ave." ;79
1772 "Fifth-Maple intersection"
1773 )
1774 (
1775"You are at the intersection of Fifth Street and the east end of Oaktree Ave.
1776There is a cliff off to the east."
1777 "Fifth-Oaktree intersection" ;80
1778 )
1779 (
1780"You are at the intersection of Fifth Street and the east end of Vermont Ave."
1781 "Fifth-Vermont intersection" ;81
1782 )
1783 (
1784"You are at the north end of Fifth Street and the east end of Sycamore Ave."
1785 "Fifth-Sycamore intersection" ;82
1786 )
1787 (
1788"You are in front of the Museum of Natural History. A door leads into
1789the building to the north, and a road leads to the southeast."
1790 "Museum entrance" ;83
1791 )
1792 (
1793"You are in the main lobby for the Museum of Natural History. In the center
1794of the room is the huge skeleton of a dinosaur. Doors lead out to the
1795south and east."
1796 "Museum lobby" ;84
1797 )
1798 (
1799"You are in the geological display. All of the objects that used to
1800be on display are missing. There are rooms to the east, west, and
1801north."
1802 "Geological display" ;85
1803 )
1804 (
1805"You are in the marine life area. The room is filled with fish tanks,
1806which are filled with dead fish that have apparently died due to
1807starvation. Doors lead out to the south and east."
1808 "Marine life area" ;86
1809 )
1810 (
1811"You are in some sort of maintenance room for the museum. There is a
1812switch on the wall labeled ‘BL’. There are doors to the west and north."
1813 "Maintenance room" ;87
1814 )
1815 (
1816"You are in a classroom where school children were taught about natural
1817history. On the blackboard is written, ‘No children allowed downstairs.’
1818There is a door to the east with an ‘exit’ sign on it. There is another
1819door to the west."
1820 "Classroom" ;88
1821 )
1822 (
1823"You are at the Vermont St. subway station. A train is sitting here waiting."
1824 "Vermont station" ;89
1825 )
1826 (
1827"You are at the Museum subway stop. A passage leads off to the north."
1828 "Museum station" ;90
1829 )
1830 (
1831"You are in a north/south tunnel."
1832 "N/S tunnel" ;91
1833 )
1834 (
1835"You are at the north end of a north/south tunnel. Stairs lead up and
1836down from here. There is a garbage disposal here."
1837 "North end of N/S tunnel" ;92
1838 )
1839 (
1840"You are at the top of some stairs near the subway station. There is
1841a door to the west."
1842 "Top of subway stairs" ;93
1843 )
1844 (
1845"You are at the bottom of some stairs near the subway station. There is
1846a room to the northeast."
1847 "Bottom of subway stairs" ;94
1848 )
1849 (
1850"You are in another computer room. There is a computer in here larger
1851than you have ever seen. It has no manufacturers name on it, but it
1852does have a sign that says: This machine's name is ‘endgame’. The
1853exit is to the southwest. There is no console here on which you could
1854type."
1855 "Endgame computer room" ;95
1856 )
1857 (
1858"You are in a north/south hallway."
1859 "Endgame N/S hallway" ;96
1860 )
1861 (
1862"You have reached a question room. You must answer a question correctly in
1863order to get by. Use the ‘answer’ command to answer the question."
1864 "Question room 1" ;97
1865 )
1866 (
1867"You are in a north/south hallway."
1868 "Endgame N/S hallway" ;98
1869 )
1870 (
1871"You are in a second question room."
1872 "Question room 2" ;99
1873 )
1874 (
1875"You are in a north/south hallway."
1876 "Endgame N/S hallway" ;100
1877 )
1878 (
1879"You are in a third question room."
1880 "Question room 3" ;101
1881 )
1882 (
1883"You are in the endgame treasure room. A door leads out to the north, and
1884a hallway leads to the south."
1885 "Endgame treasure room" ;102
1886 )
1887 (
1888"You are in the winner's room. A door leads back to the south."
1889 "Winner's room" ;103
1890 )
1891 (
1892"You have reached a dead end. There is a PC on the floor here. Above
1893it is a sign that reads:
1894 Type the ‘reset’ command to type on the PC.
1895A hole leads north."
1896 "PC area" ;104
1897 )
1898))
1899
1900(setq dun-light-rooms '(0 1 2 3 4 5 6 7 8 9 10 11 12 13 24 25 26 27 28 58 59
1901 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
1902 77 78 79 80 81 82 83))
1903 2470
1904(setq dun-verblist '((die . dun-die) (ne . dun-ne) (north . dun-n)
1905 (south . dun-s) (east . dun-e) (west . dun-w)
1906 (u . dun-up) (d . dun-down) (i . dun-inven)
1907 (inventory . dun-inven) (look . dun-examine) (n . dun-n)
1908 (s . dun-s) (e . dun-e) (w . dun-w) (se . dun-se)
1909 (nw . dun-nw) (sw . dun-sw) (up . dun-up)
1910 (down . dun-down) (in . dun-in) (out . dun-out)
1911 (go . dun-go) (drop . dun-drop) (southeast . dun-se)
1912 (southwest . dun-sw) (northeast . dun-ne)
1913 (northwest . dun-nw) (save . dun-save-game)
1914 (restore . dun-restore) (long . dun-long) (dig . dun-dig)
1915 (shake . dun-shake) (wave . dun-shake)
1916 (examine . dun-examine) (describe . dun-examine)
1917 (climb . dun-climb) (eat . dun-eat) (put . dun-put)
1918 (type . dun-type) (insert . dun-put)
1919 (score . dun-score) (help . dun-help) (quit . dun-quit)
1920 (read . dun-examine) (verbose . dun-long)
1921 (urinate . dun-piss) (piss . dun-piss)
1922 (flush . dun-flush) (sleep . dun-sleep) (lie . dun-sleep)
1923 (x . dun-examine) (break . dun-break) (drive . dun-drive)
1924 (board . dun-in) (enter . dun-in) (turn . dun-turn)
1925 (press . dun-press) (push . dun-press) (swim . dun-swim)
1926 (on . dun-in) (off . dun-out) (chop . dun-break)
1927 (switch . dun-press) (cut . dun-break) (exit . dun-out)
1928 (leave . dun-out) (reset . dun-power) (flick . dun-press)
1929 (superb . dun-superb) (answer . dun-answer)
1930 (throw . dun-drop) (l . dun-examine) (take . dun-take)
1931 (get . dun-take) (feed . dun-feed)))
1932
1933(setq dun-inbus nil)
1934(setq dun-nomail nil)
1935(setq dun-ignore '(the to at))
1936(setq dun-mode 'moby)
1937(setq dun-sauna-level 0)
1938
1939(defconst north 0)
1940(defconst south 1)
1941(defconst east 2)
1942(defconst west 3)
1943(defconst northeast 4)
1944(defconst southeast 5)
1945(defconst northwest 6)
1946(defconst southwest 7)
1947(defconst up 8)
1948(defconst down 9)
1949(defconst in 10)
1950(defconst out 11)
1951
1952(setq dungeon-map '(
1953; no so ea we ne se nw sw up do in ot
1954 ( 96 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;0
1955 ( -1 -1 2 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;1
1956 ( -1 -1 3 1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;2
1957 ( -1 -1 -1 2 4 6 -1 -1 -1 -1 -1 -1 ) ;3
1958 ( -1 -1 -1 -1 5 -1 -1 3 -1 -1 -1 -1 ) ;4
1959 ( -1 -1 -1 -1 255 -1 -1 4 -1 -1 255 -1 ) ;5
1960 ( -1 -1 -1 -1 -1 7 3 -1 -1 -1 -1 -1 ) ;6
1961 ( -1 -1 -1 -1 -1 255 6 27 -1 -1 -1 -1 ) ;7
1962 ( 255 5 9 10 -1 -1 -1 5 -1 -1 -1 5 ) ;8
1963 ( -1 -1 -1 8 -1 -1 -1 -1 -1 -1 -1 -1 ) ;9
1964 ( -1 -1 8 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;10
1965 ( -1 8 -1 58 -1 -1 -1 -1 -1 -1 -1 -1 ) ;11
1966 ( -1 -1 13 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;12
1967 ( 15 -1 14 12 -1 -1 -1 -1 -1 -1 -1 -1 ) ;13
1968 ( -1 -1 -1 13 -1 -1 -1 -1 -1 -1 -1 -1 ) ;14
1969 ( -1 13 16 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;15
1970 ( -1 -1 -1 15 -1 -1 -1 -1 -1 17 16 -1 ) ;16
1971 ( -1 -1 17 17 17 17 255 17 255 17 -1 -1 ) ;17
1972 ( 18 18 18 18 18 -1 18 18 19 18 -1 -1 ) ;18
1973 ( -1 18 18 19 19 20 19 19 -1 18 -1 -1 ) ;19
1974 ( -1 -1 -1 18 -1 -1 -1 -1 -1 21 -1 -1 ) ;20
1975 ( -1 -1 -1 -1 -1 20 22 -1 -1 -1 -1 -1 ) ;21
1976 ( 18 18 18 18 16 18 23 18 18 18 18 18 ) ;22
1977 ( -1 255 -1 -1 -1 19 -1 -1 -1 -1 -1 -1 ) ;23
1978 ( 23 25 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;24
1979 ( 24 255 -1 -1 -1 -1 -1 -1 -1 -1 255 -1 ) ;25
1980 (255 28 -1 -1 -1 -1 -1 -1 -1 -1 255 -1 ) ;26
1981 ( -1 -1 -1 -1 7 -1 -1 -1 -1 -1 -1 -1 ) ;27
1982 ( 26 255 -1 -1 -1 -1 -1 -1 -1 -1 255 -1 ) ;28
1983 ( -1 -1 30 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;29
1984 ( -1 -1 31 29 -1 -1 -1 -1 -1 -1 -1 -1 ) ;30
1985 ( 32 33 -1 30 -1 -1 -1 -1 -1 -1 -1 -1 ) ;31
1986 ( -1 31 -1 255 -1 -1 -1 -1 -1 34 -1 -1 ) ;32
1987 ( 31 -1 -1 -1 -1 -1 -1 -1 -1 35 -1 -1 ) ;33
1988 ( -1 35 -1 -1 -1 -1 -1 -1 32 37 -1 -1 ) ;34
1989 ( 34 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;35
1990 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;36
1991 ( -1 -1 -1 -1 -1 -1 -1 38 34 -1 -1 -1 ) ;37
1992 ( -1 -1 40 41 37 -1 -1 39 -1 -1 -1 -1 ) ;38
1993 ( -1 -1 -1 -1 38 -1 -1 -1 -1 -1 -1 -1 ) ;39
1994 ( -1 -1 -1 38 -1 -1 -1 -1 42 -1 -1 -1 ) ;40
1995 ( -1 -1 38 -1 -1 -1 -1 -1 -1 43 -1 -1 ) ;41
1996 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 40 -1 -1 ) ;42
1997 ( 44 -1 46 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;43
1998 ( -1 43 45 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;44
1999 ( -1 46 -1 44 -1 -1 -1 -1 -1 -1 -1 -1 ) ;45
2000 ( 45 -1 -1 43 -1 -1 -1 -1 -1 255 -1 -1 ) ;46
2001 ( 48 50 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;47
2002 ( 49 47 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;48
2003 ( -1 48 -1 -1 -1 -1 -1 -1 52 -1 -1 -1 ) ;49
2004 ( 47 51 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;50
2005 ( 50 104 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;51
2006 ( -1 -1 -1 -1 -1 -1 -1 -1 53 49 -1 -1 ) ;52
2007 ( -1 -1 -1 -1 -1 -1 -1 -1 54 52 -1 -1 ) ;53
2008 ( -1 -1 -1 -1 55 -1 -1 -1 -1 53 -1 -1 ) ;54
2009 ( -1 -1 -1 -1 56 -1 -1 54 -1 -1 -1 54 ) ;55
2010 ( -1 -1 -1 -1 -1 -1 -1 55 -1 31 -1 -1 ) ;56
2011 ( -1 -1 32 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;57
2012 ( 59 -1 11 -1 -1 -1 -1 -1 -1 -1 255 255) ;58
2013 ( 60 58 63 -1 -1 -1 255 -1 -1 -1 255 255) ;59
2014 ( 61 59 64 -1 -1 -1 -1 -1 -1 -1 255 255) ;60
2015 ( 62 60 65 -1 -1 -1 -1 -1 -1 -1 255 255) ;61
2016 ( -1 61 66 -1 -1 -1 -1 -1 -1 -1 255 255) ;62
2017 ( 64 -1 67 59 -1 -1 -1 -1 -1 -1 255 255) ;63
2018 ( 65 63 68 60 -1 -1 -1 -1 -1 -1 255 255) ;64
2019 ( 66 64 69 61 -1 -1 -1 -1 -1 -1 255 255) ;65
2020 ( -1 65 70 62 -1 -1 -1 -1 -1 -1 255 255) ;66
2021 ( 68 -1 71 63 -1 -1 -1 -1 -1 -1 255 255) ;67
2022 ( 69 67 72 64 -1 -1 -1 -1 -1 -1 255 255) ;68
2023 ( 70 68 73 65 -1 -1 -1 -1 -1 -1 255 255) ;69
2024 ( -1 69 74 66 -1 -1 -1 -1 -1 -1 255 255) ;70
2025 ( 72 -1 75 67 -1 -1 -1 -1 -1 -1 255 255) ;71
2026 ( 73 71 76 68 -1 -1 -1 -1 -1 -1 255 255) ;72
2027 ( 74 72 77 69 -1 -1 -1 -1 -1 -1 255 255) ;73
2028 ( -1 73 78 70 -1 -1 -1 -1 -1 -1 255 255) ;74
2029 ( 76 -1 79 71 -1 -1 -1 -1 -1 -1 255 255) ;75
2030 ( 77 75 80 72 -1 -1 -1 -1 -1 -1 255 255) ;76
2031 ( 78 76 81 73 -1 -1 -1 -1 -1 -1 255 255) ;77
2032 ( -1 77 82 74 -1 -1 -1 -1 -1 -1 255 255) ;78
2033 ( 80 -1 -1 75 -1 -1 -1 -1 -1 -1 255 255) ;79
2034 ( 81 79 255 76 -1 -1 -1 -1 -1 -1 255 255) ;80
2035 ( 82 80 -1 77 -1 -1 -1 -1 -1 -1 255 255) ;81
2036 ( -1 81 -1 78 -1 -1 -1 -1 -1 -1 255 255) ;82
2037 ( 84 -1 -1 -1 -1 59 -1 -1 -1 -1 255 255) ;83
2038 ( -1 83 85 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;84
2039 ( 86 -1 87 84 -1 -1 -1 -1 -1 -1 -1 -1 ) ;85
2040 ( -1 85 88 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;86
2041 ( 88 -1 -1 85 -1 -1 -1 -1 -1 -1 -1 -1 ) ;87
2042 ( -1 87 255 86 -1 -1 -1 -1 -1 -1 -1 -1 ) ;88
2043 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 255 -1 ) ;89
2044 ( 91 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;90
2045 ( 92 90 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;91
2046 ( -1 91 -1 -1 -1 -1 -1 -1 93 94 -1 -1 ) ;92
2047 ( -1 -1 -1 88 -1 -1 -1 -1 -1 92 -1 -1 ) ;93
2048 ( -1 -1 -1 -1 95 -1 -1 -1 92 -1 -1 -1 ) ;94
2049 ( -1 -1 -1 -1 -1 -1 -1 94 -1 -1 -1 -1 ) ;95
2050 ( 97 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;96
2051 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;97
2052 ( 99 97 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;98
2053 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;99
2054 ( 101 99 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;100
2055 ( -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;101
2056 ( 103 101 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;102
2057 ( -1 102 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;103
2058 ( 51 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ) ;104
2059 )
2060; no so ea we ne se nw sw up do in ot
2061)
2062
2063
2064;;; How the user references *all* objects, permanent and regular.
2065(setq dun-objnames '(
2066 (shovel . 0)
2067 (lamp . 1)
2068 (cpu . 2) (board . 2) (card . 2) (chip . 2)
2069 (food . 3)
2070 (key . 4)
2071 (paper . 5) (slip . 5)
2072 (rms . 6) (statue . 6) (statuette . 6) (stallman . 6)
2073 (diamond . 7)
2074 (weight . 8)
2075 (life . 9) (preserver . 9)
2076 (bracelet . 10) (emerald . 10)
2077 (gold . 11)
2078 (platinum . 12)
2079 (towel . 13) (beach . 13)
2080 (axe . 14)
2081 (silver . 15)
2082 (license . 16)
2083 (coins . 17)
2084 (egg . 18)
2085 (jar . 19)
2086 (bone . 20)
2087 (acid . 21) (nitric . 21)
2088 (glycerine . 22)
2089 (ruby . 23)
2090 (amethyst . 24)
2091 (mona . 25)
2092 (bill . 26)
2093 (floppy . 27) (disk . 27)
2094
2095 (boulder . -1)
2096 (tree . -2) (trees . -2) (palm . -2)
2097 (bear . -3)
2098 (bin . -4) (bins . -4)
2099 (cabinet . -5) (computer . -5) (vax . -5) (ibm . -5)
2100 (protoplasm . -6)
2101 (dial . -7)
2102 (button . -8)
2103 (chute . -9)
2104 (painting . -10)
2105 (bed . -11)
2106 (urinal . -12)
2107 (URINE . -13)
2108 (pipes . -14) (pipe . -14)
2109 (box . -15) (slit . -15)
2110 (cable . -16) (ethernet . -16)
2111 (mail . -17) (drop . -17)
2112 (bus . -18)
2113 (gate . -19)
2114 (cliff . -20)
2115 (skeleton . -21) (dinosaur . -21)
2116 (fish . -22)
2117 (tanks . -23) (tank . -23)
2118 (switch . -24)
2119 (blackboard . -25)
2120 (disposal . -26) (garbage . -26)
2121 (ladder . -27)
2122 (subway . -28) (train . -28)
2123 (pc . -29) (drive . -29) (coconut . -30) (coconuts . -30)
2124 (lake . -32) (water . -32)
2125))
2126
2127(dolist (x dun-objnames)
2128 (let (name)
2129 (setq name (concat "obj-" (prin1-to-string (car x))))
2130 (eval (list 'defconst (intern name) (cdr x)))))
2131
2132(defconst obj-special 255)
2133
2134;;; The initial setup of what objects are in each room.
2135;;; Regular objects have whole numbers lower than 255.
2136;;; Objects that cannot be taken but might move and are
2137;;; described during room description are negative.
2138;;; Stuff that is described and might change are 255, and are
2139;;; handled specially by 'dun-describe-room.
2140
2141(setq dun-room-objects (list nil
2142
2143 (list obj-shovel) ;; treasure-room
2144 (list obj-boulder) ;; dead-end
2145 nil nil nil
2146 (list obj-food) ;; se-nw-road
2147 (list obj-bear) ;; bear-hangout
2148 nil nil
2149 (list obj-special) ;; computer-room
2150 (list obj-lamp obj-license obj-silver);; meadow
2151 nil nil
2152 (list obj-special) ;; sauna
2153 nil
2154 (list obj-weight obj-life) ;; weight-room
2155 nil nil
2156 (list obj-rms obj-floppy) ;; thirsty-maze
2157 nil nil nil nil nil nil nil
2158 (list obj-emerald) ;; hidden-area
2159 nil
2160 (list obj-gold) ;; misty-room
2161 nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
2162 (list obj-towel obj-special) ;; red-room
2163 nil nil nil nil nil
2164 (list obj-box) ;; stair-landing
2165 nil nil nil
2166 (list obj-axe) ;; small-crawlspace
2167 nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
2168 nil nil nil nil nil
2169 (list obj-special) ;; fourth-vermont-intersection
2170 nil nil
2171 (list obj-coins) ;; fifth-oaktree-intersection
2172 nil
2173 (list obj-bus) ;; fifth-sycamore-intersection
2174 nil
2175 (list obj-bone) ;; museum-lobby
2176 nil
2177 (list obj-jar obj-special obj-ruby) ;; marine-life-area
2178 (list obj-nitric) ;; maintenance-room
2179 (list obj-glycerine) ;; classroom
2180 nil nil nil nil nil
2181 (list obj-amethyst) ;; bottom-of-subway-stairs
2182 nil nil
2183 (list obj-special) ;; question-room-1
2184 nil
2185 (list obj-special) ;; question-room-2
2186 nil
2187 (list obj-special) ;; question-room-three
2188 nil
2189 (list obj-mona) ;; winner's-room
2190nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
2191nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
2192nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
2193nil))
2194
2195;;; These are objects in a room that are only described in the
2196;;; room description. They are permanent.
2197
2198(setq dun-room-silents (list nil
2199 (list obj-tree obj-coconut) ;; dead-end
2200 (list obj-tree obj-coconut) ;; e-w-dirt-road
2201 nil nil nil nil nil nil
2202 (list obj-bin) ;; mailroom
2203 (list obj-computer) ;; computer-room
2204 nil nil nil
2205 (list obj-dial) ;; sauna
2206 nil
2207 (list obj-ladder) ;; weight-room
2208 (list obj-button obj-ladder) ;; maze-button-room
2209 nil nil nil
2210 nil nil nil nil
2211 (list obj-lake) ;; lakefront-north
2212 (list obj-lake) ;; lakefront-south
2213 nil
2214 (list obj-chute) ;; cave-entrance
2215 nil nil nil nil nil
2216 (list obj-painting obj-bed) ;; bedroom
2217 (list obj-urinal obj-pipes) ;; bathroom
2218 nil nil nil nil nil nil
2219 (list obj-boulder) ;; horseshoe-boulder-room
2220 nil nil nil nil nil nil nil nil nil nil nil nil nil nil
2221 (list obj-computer obj-cable) ;; gamma-computing-center
2222 (list obj-mail) ;; post-office
2223 (list obj-gate) ;; main-maple-intersection
2224 nil nil nil nil nil nil nil nil nil nil nil nil nil
2225 nil nil nil nil nil nil nil
2226 (list obj-cliff) ;; fifth-oaktree-intersection
2227 nil nil nil
2228 (list obj-dinosaur) ;; museum-lobby
2229 nil
2230 (list obj-fish obj-tanks) ;; marine-life-area
2231 (list obj-switch) ;; maintenance-room
2232 (list obj-blackboard) ;; classroom
2233 (list obj-train) ;; vermont-station
2234 nil nil
2235 (list obj-disposal) ;; north-end-of-n-s-tunnel
2236 nil nil
2237 (list obj-computer) ;; endgame-computer-room
2238 nil nil nil nil nil nil nil nil
2239 (list obj-pc) ;; pc-area
2240 nil nil nil nil nil nil
2241))
2242(setq dun-inventory '(1))
2243
2244;;; Descriptions of objects, as they appear in the room description, and
2245;;; the inventory.
2246
2247(setq dun-objects '(
2248 ("There is a shovel here." "A shovel") ;0
2249 ("There is a lamp nearby." "A lamp") ;1
2250 ("There is a CPU card here." "A computer board") ;2
2251 ("There is some food here." "Some food") ;3
2252 ("There is a shiny brass key here." "A brass key") ;4
2253 ("There is a slip of paper here." "A slip of paper") ;5
2254 ("There is a wax statuette of Richard Stallman here." ;6
2255 "An RMS statuette")
2256 ("There is a shimmering diamond here." "A diamond") ;7
2257 ("There is a 10 pound weight here." "A weight") ;8
2258 ("There is a life preserver here." "A life preserver");9
2259 ("There is an emerald bracelet here." "A bracelet") ;10
2260 ("There is a gold bar here." "A gold bar") ;11
2261 ("There is a platinum bar here." "A platinum bar") ;12
2262 ("There is a beach towel on the ground here." "A beach towel")
2263 ("There is an axe here." "An axe") ;14
2264 ("There is a silver bar here." "A silver bar") ;15
2265 ("There is a bus driver's license here." "A license") ;16
2266 ("There are some valuable coins here." "Some valuable coins")
2267 ("There is a jewel-encrusted egg here." "A valuable egg") ;18
2268 ("There is a glass jar here." "A glass jar") ;19
2269 ("There is a dinosaur bone here." "A bone") ;20
2270 ("There is a packet of nitric acid here." "Some nitric acid")
2271 ("There is a packet of glycerine here." "Some glycerine") ;22
2272 ("There is a valuable ruby here." "A ruby") ;23
2273 ("There is a valuable amethyst here." "An amethyst") ;24
2274 ("The Mona Lisa is here." "The Mona Lisa") ;25
2275 ("There is a 100 dollar bill here." "A $100 bill") ;26
2276 ("There is a floppy disk here." "A floppy disk") ;27
2277 )
2278)
2279
2280;;; Weight of objects
2281
2282(setq dun-object-lbs
2283 '(2 1 1 1 1 0 2 2 10 3 1 1 1 0 1 1 0 1 1 1 1 0 0 2 2 1 0 0))
2284(setq dun-object-pts
2285 '(0 0 0 0 0 0 0 10 0 0 10 10 10 0 0 10 0 10 10 0 0 0 0 10 10 10 10 0))
2286
2287
2288;;; Unix representation of objects.
2289(setq dun-objfiles '(
2290 "shovel.o" "lamp.o" "cpu.o" "food.o" "key.o" "paper.o"
2291 "rms.o" "diamond.o" "weight.o" "preserver.o" "bracelet.o"
2292 "gold.o" "platinum.o" "towel.o" "axe.o" "silver.o" "license.o"
2293 "coins.o" "egg.o" "jar.o" "bone.o" "nitric.o" "glycerine.o"
2294 "ruby.o" "amethyst.o"
2295 ))
2296
2297;;; These are the descriptions for the negative numbered objects from
2298;;; dun-room-objects
2299
2300(setq dun-perm-objects '(
2301 nil
2302 ("There is a large boulder here.")
2303 nil
2304 ("There is a ferocious bear here!")
2305 nil
2306 nil
2307 ("There is a worthless pile of protoplasm here.")
2308 nil
2309 nil
2310 nil
2311 nil
2312 nil
2313 nil
2314 ("There is a strange smell in this room.")
2315 nil
2316 (
2317"There is a box with a slit in it, bolted to the wall here."
2318 )
2319 nil
2320 nil
2321 ("There is a bus here.")
2322 nil
2323 nil
2324 nil
2325))
2326
2327
2328;;; These are the descriptions the user gets when regular objects are
2329;;; examined.
2330
2331(setq dun-physobj-desc '(
2332"It is a normal shovel with a price tag attached that says $19.99."
2333"The lamp is hand-crafted by Geppetto."
2334"The CPU board has a VAX chip on it. It seems to have
23352 Megabytes of RAM onboard."
2336"It looks like some kind of meat. Smells pretty bad."
2337nil
2338"The paper says: Don't forget to type ‘help’ for help. Also, remember
2339this word: ‘worms’"
2340"The statuette is of the likeness of Richard Stallman, the author of the
2341famous EMACS editor. You notice that he is not wearing any shoes."
2342nil
2343"You observe that the weight is heavy."
2344"It says S. S. Minnow."
2345nil
2346nil
2347nil
2348"It has a picture of snoopy on it."
2349nil
2350nil
2351"It has your picture on it!"
2352"They are old coins from the 19th century."
2353"It is a valuable Fabrege egg."
2354"It is a plain glass jar."
2355nil
2356nil
2357nil
2358nil
2359nil
2360 )
2361)
2362
2363;;; These are the descriptions the user gets when non-regular objects
2364;;; are examined.
2365
2366(setq dun-permobj-desc '(
2367 nil
2368"It is just a boulder. It cannot be moved."
2369"They are palm trees with a bountiful supply of coconuts in them."
2370"It looks like a grizzly to me."
2371"All of the bins are empty. Looking closely you can see that there
2372are names written at the bottom of each bin, but most of them are
2373faded away so that you cannot read them. You can only make out three
2374names:
2375 Jeffrey Collier
2376 Robert Toukmond
2377 Thomas Stock
2378"
2379 nil
2380"It is just a garbled mess."
2381"The dial points to a temperature scale which has long since faded away."
2382nil
2383nil
2384"It is a velvet painting of Elvis Presley. It seems to be nailed to the
2385wall, and you cannot move it."
2386"It is a queen sized bed, with a very firm mattress."
2387"The urinal is very clean compared with everything else in the cave. There
2388isn't even any rust. Upon close examination you realize that the drain at the
2389bottom is missing, and there is just a large hole leading down the
2390pipes into nowhere. The hole is too small for a person to fit in. The
2391flush handle is so clean that you can see your reflection in it."
2392nil
2393nil
2394"The box has a slit in the top of it, and on it, in sloppy handwriting, is
2395written: ‘For key upgrade, put key in here.’"
2396nil
2397"It says ‘express mail’ on it."
2398"It is a 35 passenger bus with the company name ‘mobytours’ on it."
2399"It is a large metal gate that is too big to climb over."
2400"It is a HIGH cliff."
2401"Unfortunately you do not know enough about dinosaurs to tell very much about
2402it. It is very big, though."
2403"The fish look like they were once quite beautiful."
2404nil
2405nil
2406nil
2407nil
2408"It is a normal ladder that is permanently attached to the hole."
2409"It is a passenger train that is ready to go."
2410"It is a personal computer that has only one floppy disk drive."
2411 )
2412)
2413
2414(setq dun-diggables
2415 (list nil nil nil (list obj-cpu) nil nil nil nil nil nil nil
2416 nil nil nil nil nil nil nil nil nil nil ;11-20
2417 nil nil nil nil nil nil nil nil nil nil ;21-30
2418 nil nil nil nil nil nil nil nil nil nil ;31-40
2419 nil (list obj-platinum) nil nil nil nil nil nil nil nil))
2420
2421(setq dun-room-shorts nil)
2422(dolist (x dun-rooms) 2471(dolist (x dun-rooms)
2423 (setq dun-room-shorts 2472 (setq dun-room-shorts
2424 (append dun-room-shorts (list (downcase 2473 (append dun-room-shorts (list (downcase
2425 (dun-space-to-hyphen 2474 (dun-space-to-hyphen
2426 (cadr x))))))) 2475 (cadr x)))))))
2427 2476
2428(setq dun-endgame-questions '(
2429 (
2430"What is your password on the machine called ‘pokey’?" "robert")
2431 (
2432"What password did you use during anonymous ftp to gamma?" "foo")
2433 (
2434"Excluding the endgame, how many places are there where you can put
2435treasures for points?" "4" "four")
2436 (
2437"What is your login name on the ‘endgame’ machine?" "toukmond"
2438)
2439 (
2440"What is the nearest whole dollar to the price of the shovel?" "20" "twenty")
2441 (
2442"What is the name of the bus company serving the town?" "mobytours")
2443 (
2444"Give either of the two last names in the mailroom, other than your own."
2445"collier" "stock")
2446 (
2447"What cartoon character is on the towel?" "snoopy")
2448 (
2449"What is the last name of the author of EMACS?" "stallman")
2450 (
2451"How many megabytes of memory is on the CPU board for the Vax?" "2")
2452 (
2453"Which street in town is named after a U.S. state?" "vermont")
2454 (
2455"How many pounds did the weight weigh?" "ten" "10")
2456 (
2457"Name the STREET which runs right over the subway stop." "fourth" "4" "4th")
2458 (
2459"How many corners are there in town (excluding the one with the Post Office)?"
2460 "24" "twentyfour" "twenty-four")
2461 (
2462"What type of bear was hiding your key?" "grizzly")
2463 (
2464"Name either of the two objects you found by digging." "cpu" "card" "vax"
2465"board" "platinum")
2466 (
2467"What network protocol is used between pokey and gamma?" "tcp/ip" "ip" "tcp")
2468))
2469
2470(let (a) 2477(let (a)
2471 (setq a 0) 2478 (setq a 0)
2472 (dolist (x dun-room-shorts) 2479 (dolist (x dun-room-shorts)
2473 (eval (list 'defconst (intern x) a)) 2480 (eval (list 'defconst (intern x) a))
2474 (setq a (+ a 1)))) 2481 (setq a (+ a 1))))
2475 2482
2476
2477
2478;;;; 2483;;;;
2479;;;; This section defines the UNIX emulation functions for dunnet. 2484;;;; This section defines the UNIX emulation functions for dunnet.
2480;;;; 2485;;;;