forked from ravzac14/Brains--IF-game-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
brains.py
502 lines (347 loc) · 9.39 KB
/
brains.py
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
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
#brains.py
#Kyle Schaefer
#Zack Raver
#Start Date: 11/26/13
import sys
from pyf import items, game, interface, props
##################################### Playable Character #######################
whichGame = raw_input("Which character would you like to play as: Rick Grimes(Sweet), Brandon Conchobhair(Mild), Steve Butler(Medium), Zack Raver(Hotasfuck)?\n")
if whichGame=="Rick" or "Rick Grimes" or "rick" or "sweet" or "easy":
class rickGame(game.Game):
pass
elif whichGame=="Brandon" or "Brandon Conchobhair" or "brandon" or "mild" or "normal" or "concho":
class brandonGame(game.brandonGame):
pass
elif whichGame=="Steve" or "Steve Butler" or "steve" or "medium" or "hard":
class steveGame(game.steveGame):
pass
elif whichGame=="Zack" or "Zack Raver" or "zack" or "hot" or "hotasfuck" or "legendary":
class zackGame(game.zackGame):
pass
else:
print "Not a valid character, please restart the game and try again!"
sys.exit(0)
##class Game(game.Game):
## pass
################################# Hospital Grounds Classes #####################
class DocOffice(items.Room):
pass
class DocHallOne(items.Room):
pass
class NurseStation(items.Room):
pass
class DocStairwell(items.Room):
pass
class EROne(items.Room):
pass
class Jibs(items.Room):
pass
class ERWaitingRoom(items.Room):
pass
class HospitalParkingLot(items.Room):
pass
class HospAmbulance(items.Room):
pass
class JibsAmbulance(items.Room):
pass
class PharmacyParkingLot(items.Room):
pass
class JibsParkingLotExit(items.Room):
pass
class GrocerParkingLot(items.Room):
pass
class GrocerAmbulance(items.Room):
pass
class PharmacyMain(items.Room):
pass
class PharmacyBehindCounter(items.Room):
pass
class GrocerEntrance(items.Room):
pass
class ProduceSection(items.Room):
pass
class TwinkySection(items.Room):
pass
class Butchery(items.Room):
pass
######################### MAIN STREET CLASSES ##################################
class MainStreetOne(items.Room):
pass
class MainStreetTwo(items.Room):
pass
class MainStreetThree(items.Room):
pass
class MainStreetFour(items.Room):
pass
class MainStreetFive(items.Room):
pass
class MainStreetSix(items.Room):
pass
class MainStreetSeven(items.Room):
pass
class MainStreetEight(items.Room):
pass
class MainStreetNine(items.Room):
pass
class MainStreetTen(items.Room):
pass
class CountryRoadOne(items.Room):
pass
class CountryRoadTwo(items.Room):
pass
class CountryRoadThree(items.Room):
pass
class MilitarySafeZone(items.Room): ###Ending Possibility############################
pass
############################ 1st Avenue Classes ################################
class FirstAveOne(items.Room):
pass
class FirstAveTwo(items.Room):
pass
class FirstAveThree(items.Room):
pass
class FirstAveFour(items.Room):
pass
class FirstAveFive(items.Room):
pass
class FirstAveSix(items.Room):
pass
class FirstAveSeven(items.Room):
pass
class FirstAveEight(items.Room):
pass
########################### 2nd Avenue Classes #################################
class SecAveOne(items.Room):
pass
class SecAveTwo(items.Room):
pass
class SecAveThree(items.Room):
pass
class SecAveFour(items.Room):
pass
class SecAveFive(items.Room):
pass
class EmergencyStreetExit(items.Room): ##SecAveSix
pass
class SecAveSeven(items.Room):
pass
class SecAveEight(items.Room):
pass
########################### Alley Classes ######################################
class AlleyOne(items.Room):
pass
class AlleyTwo(items.Room):
pass
class AlleyThree(items.Room):
pass
class AlleyFour(items.Room):
pass
class AlleyFive(items.Room):
pass
########################### Boardwalk Classes ##################################
class BWParkingLotOne(items.Room):
pass
class BWParkingLotTwo(items.Room):
pass
class BWElectricBox(items.Room):
pass
class BWShopsTwo(items.Room):
pass
class BWShopsThree(items.Room):
pass
class BWShopsFour(items.Room):
pass
class HauntedHouseGame(items.Room):
pass
class CarnyGames(items.Room):
pass
class RollerCoasterControls(items.Room):
pass
class RollerCoaster(items.Room):
pass
class FerrisWheelControls(items.Room):
pass
class FerrisWheel(items.Room):
pass
class BWOne(items.Room):
pass
class BWTwo(items.Room):
pass
class BWThree(items.Room):
pass
class BWFour(items.Room):
pass
class BWEntrance(items.Room):
pass
class ClownRoom(items.Room): ########### ENDING POSSIBILITY #################
pass
########################### Zoo Classes ########################################
class ZooParkingLotOne(items.Room):
pass
class ZooParkingLotTwo(items.Room):
pass
class ZooTicketBooths(items.Room):
pass
class ZooEntrance(items.Room):
pass
class ZooFountain(items.Room):
pass
class ZooPenguins(items.Room):
pass
class ZooAquariumEntrance(items.Room):
pass
class ZooAquariumSharks(items.Room):
pass
class ZooAnimalsOne(items.Room):
pass
class ZooAnimalsTwo(items.Room):
pass
class ZooAnimalThree(items.Room):
pass
class ZooSecret(items.Room):
pass
################################## Mansion/Houses Classes ######################
class HouseFourMain(items.Room):
pass
class HouseFourBY(items.Room):
pass
class HouseThreeGar(items.Room):
pass
class HouseThreeMain(items.Room):
pass
class HouseThreeBYMain(items.Room):
pass
class HouseThreeBYPool(items.Room):
pass
class HouseTwoGar(items.Room):
pass
class HouseTwoMain(items.Room):
pass
class HouseTwoAttic(items.Room):
pass
class HouseTwoBYMain(items.Room):
pass
class HouseTwoBYPool(items.Room):
pass
class HouseTwoBYTrashFence(items.Room):
pass
class HouseOneGar(items.Room):
pass
class HouseOneMain(items.Room):
pass
class HouseOneBY(items.Room):
pass
class ManDW(items.Room):
pass
class ManEntrance(items.Room):
pass
class ManGar(items.Room):
pass
class ManRV(items.Room):
pass
class ManFFBedRoom(items.Room):
pass
class ManFFKitchen(items.Room):
pass
class ManArmory(items.Room):
pass
class ManSFBath(items.Room):
pass
class ManSFLibrary(items.Room):
pass
class ManSFBedroom(items.Room):
pass
class ManSFTorture(items.Room):
pass
###############################Elementary School Classes #######################
class SchoolParkingLot(items.Room):
pass
class SchoolBus(items.Room):
pass
class KinderClass(items.Room):
pass
class GradeClass(items.Room):
pass
class LunchArea(items.Room):
pass
class Playground(items.Room):
pass
class AuditoriumMain(items.Room):
pass
class AudStorage(items.Room):
pass
############################# Forest/Graveyard/Swamp Classes ###################
class ForestOne(items.Room): ##Leftwise
pass
class ForestTwo(items.Room):
pass
class ForestThree(items.Room):
pass
class SwampOne(items.Room):
pass
class SwampTwo(items.Room):
pass
class SwampThree(items.Room):
pass
class GraveyardOne(items.Room):
pass
class GraveyardTwo(items.Room):
pass
class Sinkhole(items.Room):
pass
############################# Hills/ Lake/ Cabin Classes #######################
class WaterfrontHills(items.Room):
pass
class HillsTwo(items.Room):
pass
class HillsThree(items.Room):
pass
class HillsFour(items.Room):
pass
class HillsFive(items.Room):
pass
class HillsSix(items.Room):
pass
class HillsSeven(items.Room):
pass
class LakeInlet(items.Room):
pass
############################# Romero St./Construction Site/ Field Classes #############quit
####
class RomeroStOne(items.Room):
pass
class RomeroStTwo(items.Room):
pass
class RomeroStThree(items.Room):
pass
class RomeroStFour(items.Room):
pass
class RomeroStFive(items.Room):
pass
class ForemansOffice(items.Room):
pass
class ConstructionSiteOne(items.Room):
pass
class ConstructionSiteTwo(items.Room):
pass
################################ Actors ########################################
class Rick(items.Actor):
pass
#################################### Items #####################################
class DocKey(items.Item):
pass
class DocCabinet(items.Item):
pass
class HosGown(items.Item):
pass
##################### Create Game and Interface from brains.script.xml #########
game = game.createFromScript(open('brains.script.xml'), locals())
if whichGame=="Rick" or "Rick Grimes" or "rick" or "sweet" or "easy":
game.actor = Rick.inst
elif whichGame=="Brandon" or "Brandon Conchobhair" or "brandon" or "mild" or "normal" or "concho":
game.actor = Brandon.inst
elif whichGame=="Steve" or "Steve Butler" or "steve" or "medium" or "hard":
game.actor = Steve.inst
elif whichGame=="Zack" or "Zack Raver" or "zack" or "hot" or "hotasfuck" or "legendary":
game.actor = Zack.inst
interface.runGame(game)