forked from historicalsource/arthur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
places.zil
182 lines (174 loc) · 3.61 KB
/
places.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
;"***************************************************************************"
; "game : Arthur"
; "file : PLACES.ZIL"
; "auth : $Author: DEB $"
; "date : $Date: 11 May 1989 3:46:06 $"
; "revs : $Revision: 1.52 $"
; "vers : 1.0"
;"---------------------------------------------------------------------------"
; "Rooms not yet placed with associated code"
; "Copyright (C) 1989 Infocom, Inc. All rights reserved."
;"***************************************************************************"
<ROOM RM-FORK-IN-ROAD
(LOC ROOMS)
(DESC "fork in the road")
(FLAGS FL-LIGHTED)
(SYNONYM FORK ROAD)
(SOUTH TO RM-TOWN-GATE)
(NE TO RM-MOOR)
(NW TO RM-ROAD)
(UP PER RT-FLY-UP)
(GLOBAL RM-MOOR)
(ACTION RT-RM-FORK-IN-ROAD)
(THINGS
<> (ROCK ROCKS STONE STONES BOULDER BOULDERS) RT-PS-FORK-ROCKS
<> (TREE TREES BRANCH BRANCHES) RT-PS-TREES
)
>
<ROUTINE RT-RM-FORK-IN-ROAD ("OPT" (CONTEXT <>))
<COND
(<MC-CONTEXT? ,M-F-LOOK ,M-V-LOOK ,M-LOOK>
<COND
(<MC-CONTEXT? ,M-LOOK>
<TELL "You are" standing " at">
)
(T
<TELL "You come to">
)
>
<TELL
" a fork in the road. One route goes northwest, the other northeast. The
road back to the town is to the south.|"
>
<RFALSE>
)
(<MC-CONTEXT? ,M-ENTER>
<SETG GL-PICTURE-NUM ,K-PIC-FORK>
<COND
(<EQUAL? ,GL-WINDOW-TYPE ,K-WIN-PICT>
<RT-UPDATE-PICT-WINDOW>
)
>
<RFALSE>
)
(.CONTEXT
<RFALSE>
)
(<VERB? EXAMINE>
<COND
(<MC-HERE? ,RM-TOWN-GATE>
<TELL "The road leads north along the town wall." CR>
)
>
)
>
>
<ROUTINE RT-PS-FORK-ROCKS ("OPT" (CONTEXT <>) (ART <>) (CAP? <>))
<COND
(<MC-CONTEXT? ,M-OBJDESC>
<FSET ,PSEUDO-OBJECT ,FL-PLURAL>
<FCLEAR ,PSEUDO-OBJECT ,FL-VOWEL>
<COND
(.ART
<PRINT-ARTICLE ,PSEUDO-OBJECT .ART .CAP?>
)
>
<COND
(<EQUAL? .ART <> ,K-ART-THE ,K-ART-A ,K-ART-ANY>
<COND
(.ART
<TELL " ">
)
>
<TELL "rocks">
)
>
)
(.CONTEXT
<RFALSE>
)
(<VERB? EXAMINE>
<TELL "The boulders line the road that leads northeast." CR>
)
>
>
<ROUTINE RT-PS-TREES ("OPT" (CONTEXT <>) (ART <>) (CAP? <>))
<COND
(<MC-CONTEXT? ,M-OBJDESC>
<FSET ,PSEUDO-OBJECT ,FL-PLURAL>
<FCLEAR ,PSEUDO-OBJECT ,FL-VOWEL>
<COND
(.ART
<PRINT-ARTICLE ,PSEUDO-OBJECT .ART .CAP?>
)
>
<COND
(<EQUAL? .ART <> ,K-ART-THE ,K-ART-A ,K-ART-ANY>
<COND
(.ART
<TELL " ">
)
>
<TELL "trees">
)
>
)
(.CONTEXT
<RFALSE>
)
(<VERB? EXAMINE>
<TELL "The trees are surprisingly full for this time of year." CR>
)
>
>
<ROOM RM-ROAD
(LOC ROOMS)
(DESC "road")
(FLAGS FL-LIGHTED)
(SYNONYM ROAD)
(NORTH TO RM-EDGE-OF-WOODS)
(SE TO RM-FORK-IN-ROAD)
(UP PER RT-FLY-UP)
(ACTION RT-RM-ROAD)
>
<ROUTINE RT-RM-ROAD ("OPT" (CONTEXT <>))
<COND
(<MC-CONTEXT? ,M-F-LOOK ,M-V-LOOK ,M-LOOK>
<COND
(<MC-CONTEXT? ,M-LOOK>
<TELL
"You are" standing " on a road that leads north towards the woods and off
to the southeast.|"
>
)
(T
<TELL "The road takes you ">
<COND
(<EQUAL? ,OHERE ,RM-EDGE-OF-WOODS>
<TELL "away from the woods, and curves to the southeast.|">
)
(T
<TELL "towards the woods, which lie to the north.|">
)
>
)
>
<RFALSE>
)
(<MC-CONTEXT? ,M-ENTER>
<SETG GL-PICTURE-NUM ,K-PIC-ROAD>
<COND
(<EQUAL? ,GL-WINDOW-TYPE ,K-WIN-PICT>
<RT-UPDATE-PICT-WINDOW>
)
>
<RFALSE>
)
(.CONTEXT
<RFALSE>
)
>
>
;"***************************************************************************"
; "end of file"
;"***************************************************************************"