-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadventure.txt
166 lines (147 loc) · 2.5 KB
/
adventure.txt
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
'turn timer string'
-timerString
0
-hasWon
0
-hasKey
0
-doorUnlocked
01
-playerRoom
'key on a table',
'an old wardrobe',
-room1Items
'an empty table',
'an old wardrobe',
-room1ItemsNoKey
'The first room'
-room1Des
'The second room'
-room2Des
'The third room'
-room3Des
'strange painting',
'sleeping mat',
-room2Items
'locked door',
'moss-covered wall',
-room3Items
'unlocked door',
'moss-covered wall',
-room3ItemsUnlocked
HANDLE MOVEMENT
handle, 'move left', is equivalent!
if?
playerRoom, 01, is equivalent!
if?
playerRoom, 0, stor!
end block.
playerRoom, 012, is equivalent!
if?
playerRoom, 01, stor!
end block.
end block.
handle, 'move right', is equivalent!
if?
playerRoom, 01, is equivalent!
if?
playerRoom, 012, stor!
end block.
playerRoom, 0, is equivalent!
if?
playerRoom, 01, stor!
end block.
end block.
GIVE WARNINGS
give, 012345, is equivalent!
if?
'You hear a distant rumbling', prints!
end block.
give, 01 0, is equivalent!
if?
'The room shakes ominously around you.', prints!
end block.
give, 01 012345, is equivalent!
if?
'The room shakes violently on all sides!', prints!
end block.
SEARCH ROOM
search, 'search room', is equivalent!
if?
playerRoom, 0, is equivalent!
if?
roomItems, room1Items, stor!
end block.
playerRoom, 01, is equivalent!
if?
roomItems, room2Items, stor!
end block.
playerRoom, 012, is equivalent!
if?
roomItems, room3Items, stor!
end block.
For...
itemList roomItems
itemList, prints!
end for.
end if.
SPECIAL INTERACTIONS
special, 'get key', is equivalent!
if?
playerRoom, 0, is equivalent!
if?
hasKey, 01, stor!
room1Items, room1ItemsNoKey, stor!
end if.
end if.
special, 'unlock door', is equivalent!
if?
playerRoom, 012, is equivalent!
hasKey, this is an anding!
if?
doorUnlocked, 01, stor!
room3Items, room3ItemsUnlocked, stor!
end if.
end if.
special, 'escape', is equivalent!
if?
playerRoom, 012, is equivalent!
doorUnlocked, this is an anding!
if?
hasWon, 01, stor!
end if.
end if.
ROOM DESCRIPTION
room, 0, is equivalent!
if?
room1Des, prints!
end if.
room, 01, is equivalent!
if?
room2Des, prints!
end if.
room, 012, is equivalent!
if?
room3Des, prints!
end if.
For...
index value timerString
hasWon, negate this word!
if?
"playerRoom, nonsense" (Room Description)
0123456!
playerInput, cache!
"playerInput, nonsense" (Handle Movement)
"index, nonsense" (Give Warnings)
"playerInput, nonsense" (Search Room)
"playerInput, nonsense" (Special Interactions)
End block.
end if.
hasWon, stor!
if?
'Conglaturations', prints!
end block.
hasWon, negate this word!
if?
'Failure', prints!
end block.