-
Notifications
You must be signed in to change notification settings - Fork 0
/
adventure.js
356 lines (270 loc) · 5.66 KB
/
adventure.js
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
// pages
var introPage = $('.introPage')
var comfort=0;
var nextCellButton = $('.nextCellButton')
nextCellButton.show();
var cellPage = $('.cellPage')
cellPage.hide();
var nextConsoleButton = $('.nextConsoleButton')
nextConsoleButton.show();
nextCellButton.click(function(){
introPage.hide();
cellConsolePage.show();
});
//are you going to the yule ball
var cellConsolePage = $('.cellConsolePage')
cellConsolePage.hide();
var redButton = $('.redButton')
redButton.show();
var blueButton = $('.blueButton')
blueButton.show();
redButton.click(function(){ // Wrong
cellConsolePage.hide();
onetwo.show();
comfort=comfort+2;
console.log(comfort);
});
blueButton.click(function(){ //Correct button
cellConsolePage.hide();
really.show();
console.log(comfort);
});
//but I’m a little nervous…
var onetwo = $('.onetwo')
onetwo.hide();
var someone = $('.someone')
someone.show();
someone.click(function(){ // Wrong
onetwo.hide();
really.hide();
inmind.show();
comfort=comfort+2;
console.log(comfort);
});
var chochang = $('.chochang')
chochang.show();
chochang.click(function(){
onetwo.hide();
really.hide();
umsure.show();
comfort=comfort-1;
console.log(comfort);
});
//Really? I’m sure someone will ask you. I’m not sure if I should ask someone or not.
var really = $('.really')
really.hide();
var pansies = $('.pansies')
pansies.show();
pansies.click(function(){ // Wrong
really.hide();
alright.show();
comfort=comfort-1;
console.log(comfort);
});
var inmind = $('.inmind')
inmind.hide();
var thinking = $('.thinking')
thinking.show();
var bothering = $('.bothering')
bothering.show();
bothering.click(function(){ // Wrong
inmind.hide();
blimey.show();
comfort=comfort+2;
console.log(comfort);
});
var nobody = $('.nobody')
nobody.hide();
var lamepotter = $('.lamepotter')
lamepotter.show();
var dances = $('.dances')
dances.show();
dances.click(function(){ // Wrong
nobody.hide();
inmind.show();
comfort=comfort+2;
console.log(comfort);
});
thinking.click(function(){ // Wrong
inmind.hide();
umsure.hide();
howfeel.hide();
fancy.show();
comfort=comfort+2;
console.log(comfort);
});
//have u been
var umsure = $('.umsure')
umsure.hide();
var nutter = $('.nutter')
nutter.show();
nutter.click(function(){ // Wrong
umsure.hide();
howfeel.show();
comfort=comfort-1;
console.log(comfort);
});
//oh alright
var alright = $('.alright')
alright.hide();
var suppose = $('.suppose')
suppose.show();
var nonsense = $('.nonsense')
nonsense.show();
suppose.click(function(){ // Wrong
alright.hide();
fancy.show();
comfort=comfort-1;
console.log(comfort);
});
nonsense.click(function(){ // Wrong
alright.hide();
nobody.show();
comfort=comfort-1;
console.log(comfort);
});
var endg = $('.endg')
endg.show();
endg.click(function(){ // Wrong
good.hide();
endgood.show();
comfort=comfort+5;
console.log(comfort);
document.getElementById('comforttest').innerHTML = comfort;
});
var endb = $('.endb')
endb.show();
endb.click(function(){ // Wrong
guessso.hide();
endbad.show();
comfort=comfort-5;
console.log(comfort);
document.getElementById('comfortt').innerHTML = comfort;
});
var endgood = $('.endgood')
endgood.hide();
var endbad = $('.endbad')
endbad.hide();
var about = $('.about')
about.hide();
var abt = $('.abt')
abt.show();
abt.click(function(){ // Wrong
endbad.hide();
endgood.hide();
about.show();
});
var guessso = $('.guessso')
guessso.hide();
lamepotter.click(function(){ // Wrong
alright.hide();
nobody.hide();
guessso.show();
comfort=comfort-1;
console.log(comfort);
});
var fancy = $('.fancy')
fancy.hide();
var action = $('.action')
action.show();
var cool = $('.cool')
cool.show();
action.click(function(){ // Wrong
fancy.hide();
blimey.hide();
sryblimey.hide();
happyharry.show();
comfort=comfort+2;
console.log(comfort);
});
cool.click(function(){
fancy.hide();
blimey.hide();
sryblimey.hide();
notsosure.show();
comfort=comfort-1;
console.log(comfort);
});
var blimey = $('.blimey')
blimey.hide();
var howfeel = $('.howfeel')
howfeel.hide();
var rubbish = $('.rubbish')
rubbish.show();
rubbish.click(function(){ // Wrong
fancy.hide();
blimey.hide();
howfeel.hide();
erwouldnt.show();
comfort=comfort-1;
console.log(comfort);
});
var erwouldnt = $('.erwouldnt')
erwouldnt.hide();
var bloodyhell = $('.bloodyhell')
bloodyhell.show();
var troll = $('.troll')
troll.show();
troll.click(function(){ // Wrong
erwouldnt.hide();
blimey.hide();
howfeel.hide();
sryblimey.show();
comfort=comfort-1;
console.log(comfort);
});
var sryblimey = $('.sryblimey')
sryblimey.hide();
var notsosure = $('.notsosure')
notsosure.hide();
var happyharry = $('.happyharry')
happyharry.hide();
var seeing = $('.seeing')
seeing.show();
var glad = $('.glad')
glad.show();
var offcolor = $('.offcolor')
offcolor.show();
offcolor.click(function(){ // Wrong
notsosure.hide();
yikes2.hide();
happyharry.show();
comfort=comfort-1;
console.log(comfort);
});
var yike = $('.yike')
yike.show();
var yikes2 = $('.yikes2')
yikes2.hide();
seeing.click(function(){ // Wrong
happyharry.hide();
yikes2.show();
comfort=comfort-1;
console.log(comfort);
});
var neville = $('.neville')
neville.show();
neville.click(function(){ // Wrong
happyharry.hide();
issue.hide();
good.show();
comfort=comfort+3;
console.log(comfort);
});
var good = $('.good')
good.hide();
var issue = $('.issue')
issue.hide();
yike.click(function(){ // Wrong
yikes2.hide();
notsosure.hide();
issue.show();
comfort=comfort-1;
console.log(comfort);
});
var bad = $('.bad')
bad.show();
bad.click(function(){ // Wrong
issue.hide();
guessso.show();
});