-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathreturn1.zil
183 lines (166 loc) · 4.16 KB
/
return1.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
;"***************************************************************************"
; "game : Abyss"
; "file : RETURN1.ZIL"
; "auth : $Author: DEB $"
; "date : $Date: 20 Mar 1989 8:45:16 $"
; "rev : $Revision: 1.3 $"
; "vers : 1.0"
;"---------------------------------------------------------------------------"
; "First return to Deepcore"
; "Copyright (C) 1988 Infocom, Inc. All rights reserved."
;"***************************************************************************"
<GLOBAL GL-RETURN1-DONE? <> <> BYTE>
<OBJECT TH-CATFISH-LOCKER
(LOC RM-PERSONAL-STORAGE-2)
(DESC "locker")
(FLAGS FL-SEARCH FL-TAKEABLE FL-CONTAINER FL-OPENABLE)
(SYNONYM LOCKER)
(ADJECTIVE CATFISH)
(SIZE 5)
(ACTION RT-TH-CATFISH-LOCKER)
>
<ROUTINE RT-TH-CATFISH-LOCKER ("OPT" (CONTEXT <>))
<RFALSE>
>
<OBJECT TH-STEEL-BOX
(LOC TH-CATFISH-LOCKER)
(DESC "box")
(FLAGS FL-SEARCH FL-TAKEABLE FL-CONTAINER FL-OPENABLE FL-LOCKED)
(SYNONYM BOX)
(ADJECTIVE STEEL CATFISH)
(SIZE 5)
(ACTION RT-TH-STEEL-BOX)
>
<ROUTINE RT-TH-STEEL-BOX ("OPT" (CONTEXT <>))
<RFALSE>
>
<OBJECT TH-CLUE-PAPER
(LOC TH-CATFISH-LOCKER ;TH-STEEL-BOX)
(DESC "paper")
(FLAGS FL-TAKEABLE FL-READABLE)
(SYNONYM PAPER)
(SIZE 5)
(ACTION RT-TH-CLUE-PAPER)
>
<ROUTINE RT-TH-CLUE-PAPER ("OPT" (CONTEXT <>))
<COND
(<VERB? READ>
<TELL "On the paper are written the words, \"IN HER DRY BED.\"" CR>
)
>
>
<OBJECT TH-STEEL-KEY
(DESC "steel key")
(FLAGS FL-KEY FL-SEARCH FL-TAKEABLE)
(SYNONYM KEY)
(ADJECTIVE STEEL)
(OWNER TH-DRYER)
(SIZE 5)
(ACTION RT-TH-STEEL-KEY)
>
<ROUTINE RT-TH-STEEL-KEY ("OPT" (CONTEXT <>) "AUX" V)
<COND
(.CONTEXT
<RFALSE>
)
(<VERB? TAKE>
<COND
(<EQUAL? <GETP ,TH-STEEL-KEY ,P?OWNER> ,TH-DRYER>
<SET V <ITAKE>>
<COND
(<EQUAL? .V ,M-FATAL>
<RFATAL>
)
(.V
<PUTP ,TH-STEEL-KEY ,P?OWNER <>>
<TELL " You peel the key off the back of the dryer." CR>
)
>
)
>
)
>
>
<OBJECT TH-DRYER
(LOC RM-LAUNDRY)
(DESC "dryer")
(FLAGS FL-CONTAINER FL-OPENABLE FL-SEARCH FL-TAKEABLE)
(SYNONYM DRYER)
(SIZE 5)
(ACTION RT-TH-DRYER)
>
<ROUTINE RT-TH-DRYER ("OPT" (CONTEXT <>))
<COND
(<VERB? LOOK-BEHIND REACH-BEHIND>
<COND
(<EQUAL? <GETP ,TH-STEEL-KEY ,P?OWNER> ,TH-DRYER>
; <FCLEAR ,TH-STEEL-KEY ,FL-INVISIBLE>
<MOVE ,TH-STEEL-KEY ,RM-LAUNDRY>
<THIS-IS-IT ,TH-STEEL-KEY>
<TELL " Taped to the back of the dryer is a small steel key." CR>
)
>
)
>
>
<OBJECT TH-PASSPORT
(LOC TH-STEEL-BOX)
(DESC "passport")
(FLAGS FL-SEARCH FL-TAKEABLE)
(SYNONYM PASSPORT)
(ADJECTIVE CATFISH)
(SIZE 5)
(ACTION RT-TH-PASSPORT)
>
<ROUTINE RT-TH-PASSPORT ("OPT" (CONTEXT <>))
<COND
(<AND <VERB? SHOW>
<MC-PRSI? ,CH-COFFEY>
<FSET? ,CH-CATFISH ,FL-ASLEEP>
>
<TELL
" Coffey glances at the passport and shrugs with contempt. \"Big deal.
These things are a dime a dozen. Any spy would have one.\"" CR
>
)
>
>
<OBJECT TH-DISCHARGE
(LOC TH-STEEL-BOX)
(DESC "discharge")
(FLAGS FL-SEARCH FL-TAKEABLE)
(SYNONYM DISCHARGE)
(ADJECTIVE CATFISH MILITARY MARINE MARINES HONORABLE PAPERS)
(OWNER CH-CATFISH)
(SIZE 5)
(ACTION RT-TH-DISCHARGE)
>
<ROUTINE RT-TH-DISCHARGE ("OPT" (CONTEXT <>))
<COND
(<VERB? EXAMINE>
<TELL
" It's an honorable discharge from the United States Marine Corps." CR
>
)
(<AND <VERB? SHOW>
<MC-PRSI? ,CH-COFFEY>
<FSET? ,CH-CATFISH ,FL-ASLEEP>
>
<FCLEAR ,CH-CATFISH ,FL-ASLEEP>
<TELL
" Coffey peers at the document carefully. \"This thing's an original, and
I know the forms are kept locked up tighter than Fort Knox. It's even
signed by Commander McMahon himself. I suppose it could have been
forged, but I guess I was wrong all along.\"|
He turns Catfish over and slaps him on the face a couple of times to
bring him around. When Catfish has regained a semblence of consciousness,
Coffey says, \"I'm sorry, fella. I guess I got carried away.\"|
Catfish drags himself to his feet and says groggily, \"Don't mention it.
Maybe I can do the same for you some day.\"" CR
>
)
>
>
;"***************************************************************************"
; "end of file"
;"***************************************************************************"