-
Notifications
You must be signed in to change notification settings - Fork 15
/
return2.zil
138 lines (124 loc) · 2.93 KB
/
return2.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
;"***************************************************************************"
; "game : Abyss"
; "file : RETURN2.ZIL"
; "auth : $Author: DEB $"
; "date : $Date: 20 Mar 1989 8:44:38 $"
; "rev : $Revision: 1.2 $"
; "vers : 1.0"
;"---------------------------------------------------------------------------"
; "Second return to Deepcore"
; "Copyright (C) 1988 Infocom, Inc. All rights reserved."
;"***************************************************************************"
<GLOBAL GL-RETURN2-DONE? <> <> BYTE>
<GLOBAL GL-COFFEY-SHOOT 0 <> BYTE>
<OBJECT TH-GUN
(LOC CH-COFFEY)
(DESC "gun")
(FLAGS FL-TAKEABLE)
(SYNONYM GUN PISTOL)
(OWNER CH-COFFEY)
(SIZE 5)
(ACTION RT-TH-GUN)
>
<ROUTINE RT-TH-GUN ("OPT" (CONTEXT <>))
<RFALSE>
>
<OBJECT TH-FBS-SUIT
(LOC TH-DIVE-LOCKER)
(DESC "FBS suit")
(FLAGS FL-CLOTHING FL-TAKEABLE)
(SYNONYM SUIT)
(ADJECTIVE FBS FLUID BREATHING SYSTEM)
(SIZE 5)
(ACTION RT-TH-FBS-SUIT)
>
<ROUTINE RT-TH-FBS-SUIT ("OPT" (CONTEXT <>))
<RFALSE>
>
<OBJECT TH-DIVE-LOCKER
(LOC RM-SUB-BAY)
(DESC "dive locker")
(FLAGS FL-CONTAINER FL-LOCKED FL-OPENABLE FL-SEARCH FL-TRY-TAKE)
(SYNONYM LOCKER)
(ADJECTIVE DIVE)
(SIZE 5)
(ACTION RT-TH-DIVE-LOCKER)
>
<ROUTINE RT-TH-DIVE-LOCKER ("OPT" (CONTEXT <>))
<COND
(.CONTEXT
<RFALSE>
)
(<VERB? TAKE MOVE PUSH PULL LIFT>
<TELL " The dive locker is securely anchored to the floor." CR>
)
>
>
<OBJECT TH-ELECTRONIC-LOCK
(LOC TH-DIVE-LOCKER)
(DESC "lock")
(SYNONYM LOCK)
(ADJECTIVE ELECTRONIC)
(SIZE 5)
(ACTION RT-TH-ELECTRONIC-LOCK)
>
<ROUTINE RT-TH-ELECTRONIC-LOCK ("OPT" (CONTEXT <>))
<RFALSE>
>
<OBJECT TH-DEVICE
(LOC CH-HIPPY)
(DESC "device")
(SYNONYM DEVICE)
(ADJECTIVE REMOTE ELECTRONIC)
(OWNER CH-HIPPY)
(SIZE 5)
(ACTION RT-TH-DEVICE)
>
<ROUTINE RT-TH-DEVICE ("OPT" (CONTEXT <>))
<RFALSE>
>
; "Cheat verb for causing narcosis for Coffey."
<SYNTAX $NITROGEN = V-$NITROGEN>
<ROUTINE V-$NITROGEN ()
<COND
(<MC-HERE? ,RM-GAS-MIX-ROOM>
<COND
(<FSET? ,LG-CHAMBER-DOOR ,FL-OPEN>
<TELL "[The compression chamber door must be closed.]|">
<RFATAL>
)
(T
<COND
(<ZERO? ,GL-WIRE-SEQUENCE>
<SETG GL-WIRE-SEQUENCE <RANDOM 4>>
)
>
<TELL
" Coffey begins to babble incoherently. You can hear him say, \""
>
<COND
(<EQUAL? ,GL-WIRE-SEQUENCE 1>
<TELL "Oxford rows great big wide yachts.\"" CR>
)
(<EQUAL? ,GL-WIRE-SEQUENCE 2>
<TELL "Yankees rarely win over Green Bay.\"" CR>
)
(<EQUAL? ,GL-WIRE-SEQUENCE 3>
<TELL "Get rid of your wet bananas.\"" CR>
)
(<EQUAL? ,GL-WIRE-SEQUENCE 4>
<TELL "Go west, young boy, or rot.\"" CR>
)
>
)
>
)
(T
<TELL "[You must be in the gas mix room to use $NITROGEN.]|">
<RFATAL>
)
>
>
;"***************************************************************************"
; "end of file"
;"***************************************************************************"