-
Notifications
You must be signed in to change notification settings - Fork 9
/
paranoia.py
executable file
·1138 lines (1038 loc) · 48.2 KB
/
paranoia.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
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env python2
#
#
# -*- encoding = 'utf-8' -*-
#
#
# py-paranoia
# ===========
# This is a port of paranoia from the old bsd-games package.
#
#
# HISTORY
# =======
#
# 1.3.2 - 11 Oct 2013
# + Remove spurious lines from "stats" display.
# + Allow stats to be displayed in choice selection.
#
# 1.3.1 - 12 Jan 2005
# + Minor fix to import statements
#
# 1.3 - 11 Jan 2005
# + Massive Object Oriented re-working done by: Steven Bethard
# + A few nice changes from Scott David Daniels
#
# 1.2.1 - 10 Jan 2005
# + Greatly improved next_page method based on code from Andy Gimblett - http://www.cs.swan.ac.uk/~csandy/
#
# 1.2 - 03 Jan 2005
# + Initially started porting application
#
# Requires
# ========
# 1) Python 2.4
#
# Acknowledgements
# ================
# Thanks to everyone who helped with this version!!
#
'''
usage: paranoia
'''
__author__ = 'Sean P. Kane'
__date__ = '2013-10-11'
__version__ = '1.3.2'
__copyright__ = '''
This is a solo paranoia game taken from the Jan/Feb issue (No 77) of
SpaceGamer/FantasyGamer magazine.
Article by Sam Shirley.
Originally implemented in C on Vax 11/780 under UNIX by Tim Lister
Ported to Python on an Apple Powerbook G4 by Sean P. Kane.
Additional major Python optimizations contributed by:
Andy Gimblett, Scott David Daniels, and Steven Bethard.
This is a public domain adventure and may not be sold for profit'''
import os
import sys
#if sys.version_info[0:1] >= (2,4):
# assert False, "Requires Python 2.4 or Greater"
import random
import string
import optparse
import pickle
def _dice_roll(num,sides):
return sum(random.randrange(sides) for _ in range(num)) + num
class Game(object):
def __init__(self, savefilename=None):
self.savefilename = savefilename
# initialize stats
self.moxie = 13
self.agility = 15
self.hit_points = 10
# initialize counters
self.clone = 1
self.killer_count = 0
self.maxkill = 7 # The maximum number of UV's you can kill
self.plato_clone = 3
# initialize flags
self.computer_request = False
self.ultra_violet = False
self.action_doll = False
self.read_letter = False
self.blast_door = False
# begin game
self.instructions()
self.more()
self.character()
self.more()
self.run()
def run(self, nextpage_name='page1'):
nextpage = getattr(self, nextpage_name)
while nextpage is not None:
print "-"*79
nextpage = nextpage()
def save(self, start_func, savefilename=None):
savefilename = self.savefilename or savefilename
self.nextpage = start_func
print "Saving to %s" % savefilename
pickled_file = open(savefilename, 'wb')
pickle.dump(self, pickled_file)
pickled_file.close()
def more(self, page=None):
while True:
choice = raw_input("Press <Enter> to continue: ")
if choice == 'p':
print
self.character()
else:
if hasattr(self, "page%s" % choice):
page = getattr(self, "page%s" % choice)
break
print
return page
def new_clone(self, page=None):
print "Clone %d just died." % self.clone
self.clone += 1
if self.clone > 6:
print """
*** You Lose ***
All your clones are dead. Your name has been stricken from the records.
THE END
"""
return None
else:
print "Clone %d now activated." % self.clone
self.ultra_violet = False
self.action_doll = False
self.hit_points = 10
self.killer_count = 0
return self.more(page)
def choose(self, *args):
# from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66062
caller_method_name = sys._getframe(1).f_code.co_name
assert len(args) % 2 == 0
assert len(args) >= 4
pages, descriptions = args[::2], args[1::2]
letters = string.letters[:len(pages)]
letter_page_map = dict(zip(letters, pages))
letter_desc_map = dict(zip(letters, descriptions))
choice_prompt = "Select %s or %s :\n%s" % (
", ".join(repr(c) for c in letters[:-1]),
repr(letters[-1]),
'\n'.join(" %s - %s." % (c, letter_desc_map[c])
for c in letters))
choice = None
while (choice not in letter_page_map and
not hasattr(self, "page%s" % choice)):
print choice_prompt
choice = raw_input("Type choice and press <Enter> to continue: ")
if choice == 'p':
print
self.character()
self.more()
elif choice == 's':
print
self.save(caller_method_name)
self.more()
print
return letter_page_map.get(choice) or getattr(self, "page%s" % choice)
def instructions(self):
print """\
Welcome to Paranoia!
HOW TO PLAY:
Just press <Enter> until you are asked to make a choice.
Select 'a' or 'b' or whatever for your choice, then press <Enter>.
You may select 'p' at any time to get a display of your statistics.
Always choose the least dangerous option. Continue doing this until
you win. At times you will use a skill or engage in combat and will
be informed of the outcome. These sections will be self explanatory.
HOW TO DIE:
As Philo-R-DMD you will die at times during the adventure.
When this happens you will be given an new clone at a particular
location. The new Philo-R will usually have to retrace some of
the old Philo-R's path hopefully he won't make the same mistake
as his predecessor.
HOW TO WIN:
Simply complete the mission before you expend all six clones.
If you make it, congratulations.
If not, you can try again later.
"""
def character(self):
print """\
===============================================================================
The Character : Philo-R-DMD %s
Primary Attributes Secondary Attributes
===============================================================================
Strength ..................... 13 Carrying Capacity ................. 30
Endurance .................... 13 Damage Bonus ....................... 0
Agility ...................... 15 Macho Bonus ....................... -1
Manual Dexterity ............. 15 Melee Bonus ...................... +5%%
Moxie ........................ 13 Aimed Weapon Bonus .............. +10%%
Chutzpah ...................... 8 Comprehension Bonus .............. +4%%
Mechanical Aptitude .......... 14 Believability Bonus .............. +5%%
Power Index .................. 10 Repair Bonus ..................... +5%%
===============================================================================
Credits: 160 Secret Society: Illuminati Secret Society Rank: 1
Service Group: Power Services Mutant Power: Precognition
Weapon: laser pistol to hit, 40%% type, L Range, 50m Reload, 6r Malfnt, 00
Skills: Basics 1(20%%), Aimed Weapon Combat 2(35%%), Laser 3(40%%),
Personal Development 1(20%%), Communications 2(29%%), Intimidation 3(34%%)
Equipment: Red Reflec Armour, Laser Pistol, Laser Barrel (red),
Notebook & Stylus, Knife, Com Unit 1, Jump suit,
Secret Illuminati Eye-In-The-Pyramid(tm) Decoder ring,
Utility Belt & Pouches
===============================================================================""" % self.clone
def page1(self):
print """\
You wake up face down on the red and pink checked E-Z-Kleen linoleum floor.
You recognise the pattern, it's the type preferred in the internal security
briefing cells. When you finally look around you, you see that you are alone
in a large mission briefing room.
"""
return self.more(self.page57)
def page2(self):
print """\
"Greetings," says the kindly Internal Security self incrimination expert who
meets you at the door, "How are we doing today?" He offers you a doughnut
and coffee and asks what brings you here. This doesn't seem so bad, so you
tell him that you have come to confess some possible security lapses. He
smiles knowingly, deftly catching your coffee as you slump to the floor.
"Nothing to be alarmed about it's just the truth serum," he says,
dragging you back into a discussion room.
The next five hours are a dim haze, but you can recall snatches of conversation
about your secret society, your mutant power, and your somewhat paranoid
distrust of The Computer. This should explain why you are hogtied and moving
slowly down the conveyer belt towards the meat processing unit in Food
Services.
"""
if self.computer_request:
return self.new_clone(self.page45)
else:
return self.new_clone(self.page32)
def page3(self):
print """\
You walk to the nearest Computer terminal and request more information about
Christmas. The Computer says, "That is an A-1 ULTRAVIOLET ONLY IMMEDIATE
TERMINATION classified topic. What is your clearance please, Troubleshooter?"
"""
return self.choose(
self.page4, "You give your correct clearance",
self.page5, "You lie and claim Ultraviolet clearance")
def page4(self):
print """\
"That is classified information, Troubleshooter, thank you for your inquiry.
Please report to an Internal Security self incrimination station as soon as
possible."
"""
return self.more(self.page9)
def page5(self):
print """\
The computer says, "Troubleshooter, you are not wearing the correct colour
uniform. You must put on an Ultraviolet uniform immediately. I have seen to
your needs and ordered one already it will be here shortly. Please wait with
your back to the wall until it arrives." In less than a minute an infrared
arrives carrying a white bundle. He asks you to sign for it, then hands it to
you and stands back, well outside of a fragmentation grenade's blast radius.
"""
return self.choose(
self.page6, "You open the package and put on the uniform",
self.page7, "You finally come to your senses and run for it")
def page6(self):
print """\
The uniform definitely makes you look snappy and pert. It really looks
impressive, and even has the new lopsided lapel fashion that you admire so
much. What's more, citizens of all ranks come to obsequious attention as you
walk past. This isn't so bad being an Ultraviolet. You could probably come
to like it, given time.
The beeping computer terminal interrupts your musings.
"""
self.ultra_violet = True
return self.more(self.page8)
def page7(self):
print """\
The corridor lights dim and are replaced by red battle lamps as the Security
Breach alarms howl all around you. You run headlong down the corridor and
desperately windmill around a corner, only to collide with a squad of 12 Blue
clearance Vulture squadron soldiers. "Stop, Slime Face," shouts the
commander, "or there won't be enough of you left for a tissue sample."
"All right, soldiers, stuff the greasy traitor into the uniform," he orders,
waving the business end of his blue laser scant inches from your nose.
With his other hand he shakes open a white bundle to reveal a pristine new
Ultraviolet citizen's uniform.
One of the Vulture squadron Troubleshooters grabs you by the neck in the
exotic and very painful Vulture Clamp(tm) death grip (you saw a special about
it on the Teela O'Malley show), while the rest tear off your clothes and
force you into the Ultraviolet uniform. The moment you are dressed they step
clear and stand at attention.
"Thank you for your cooperation, sir," says the steely eyed leader of the
Vulture Squad. "We will be going about our business now." With perfect
timing the Vultures wheel smartly and goosestep down the corridor.
Special Note: don't make the mistake of assuming that your skills have
improved any because of the uniform you're only a Red Troubleshooter
traitorously posing as an Ultraviolet, and don't you forget it!
Suddenly, a computer terminal comes to life beside you.
"""
self.ultra_violet = True
return self.more(self.page8)
def page8(self):
print """\
"Now, about your question, citizen. Christmas was an old world marketing ploy
to induce lower clearance citizens to purchase vast quantities of goods, thus
accumulation a large amount of credit under the control of a single class of
citizen known as Retailers. The strategy used is to imply that all good
citizens give gifts during Christmas, thus if one wishes to be a valuable
member of society one must also give gifts during Christmas. More valuable
gifts make one a more valuable member, and thus did the Retailers come to
control a disproportionate amount of the currency. In this way Christmas
eventually caused the collapse of the old world. Understandably, Christmas
has been declared a treasonable practice in Alpha Complex.
Thank you for your inquiry."
You continue on your way to GDH7-beta.
"""
return self.more(self.page10)
def page9(self):
print """\
As you walk toward the tubecar that will take you to GDH7-beta, you pass one
of the bright blue and orange Internal Security self incrimination stations.
Inside, you can see an IS agent cheerfully greet an infrared citizen and then
lead him at gunpoint into one of the rubber lined discussion rooms.
"""
choice = self.choose(
self.page2, "You decide to stop here and chat, as ordered by "
"The Computer",
self.page10, "You just continue blithely on past")
self.computer_request = choice == self.page2
return choice
def page10(self):
print """\
You stroll briskly down the corridor, up a ladder, across an unrailed catwalk,
under a perilously swinging blast door in urgent need of repair, and into
tubecar grand central. This is the bustling hub of Alpha Complex tubecar
transportation. Before you spreads a spaghetti maze of magnalift tube tracks
and linear accelerators. You bravely study the specially enhanced 3-D tube
route map you wouldn't be the first Troubleshooter to take a fast tube ride
to nowhere.
"""
if not self.ultra_violet:
choice = self.choose(
self.page3, "You decide to ask The Computer about Christmas "
"using a nearby terminal",
self.page10, "You think you have the route worked out, so "
"you'll board a tube train")
if choice == self.page3:
return choice
print "You nervously select a tubecar and step aboard."
if _dice_roll(2, 10) < self.moxie:
print "You just caught a purple line tubecar."
choice = self.page13
else:
print "You just caught a brown line tubecar."
choice = self.page48
return self.more(choice)
def page11(self):
print """\
The printing on the folder says "Experimental Self Briefing."
You open it and begin to read the following:
Step 1: Compel the briefing subject to attend the briefing.
Note: See Experimental Briefing Sub Form Indigo-WY-2,
'Experimental Self Briefing Subject Acquisition Through The Use Of
Neurotoxin Room Foggers.'
Step 2: Inform the briefing subject that the briefing has begun.
ATTENTION: THE BRIEFING HAS BEGUN.
Step 3: Present the briefing material to the briefing subject.
GREETINGS TROUBLESHOOTER.
YOU HAVE BEEN SPECIALLY SELECTED TO SINGLEHANDEDLY
WIPE OUT A DEN OF TRAITOROUS CHRISTMAS ACTIVITY. YOUR MISSION IS TO
GO TO GOODS DISTRIBUTION HALL 7-BETA AND ASSESS ANY CHRISTMAS ACTIVITY
YOU FIND THERE. YOU ARE TO INFILTRATE THESE CHRISTMAS CELEBRANTS,
LOCATE THEIR RINGLEADER, AN UNKNOWN MASTER RETAILER, AND BRING HIM
BACK FOR EXECUTION AND TRIAL. THANK YOU. THE COMPUTER IS YOUR FRIEND.
Step 4: Sign the briefing subject's briefing release form to indicate that
the briefing subject has completed the briefing.
ATTENTION: PLEASE SIGN YOUR BRIEFING RELEASE FORM.
Step 5: Terminate the briefing
ATTENTION: THE BRIEFING IS TERMINATED.
"""
self.more()
print """\
You walk to the door and hold your signed briefing release form up to the
plexiglass window. A guard scrutinises it for a moment and then slides back
the megabolts holding the door shut. You are now free to continue the
mission.
"""
return self.choose(
self.page3, "You wish to ask The Computer for more information "
"about Christmas",
self.page10, "You have decided to go directly to Goods "
"Distribution Hall 7-beta")
def page12(self):
print """\
You walk up to the door and push the button labelled "push to exit."
Within seconds a surly looking guard shoves his face into the small plexiglass
window. You can see his mouth forming words but you can't hear any of them.
You just stare at him blankly for a few moments until he points down to a
speaker on your side of the door. When you put your ear to it you can barely
hear him say, "Let's see your briefing release form, bud. You aren't
getting out of here without it."
"""
return self.choose(
self.page11, "You sit down at the table and read the Orange "
"packet",
self.page57, "You stare around the room some more")
def page13(self):
print """\
You step into the shiny plasteel tubecar, wondering why the shape has always
reminded you of bullets. The car shoots forward the instant your feet touch
the slippery gray floor, pinning you immobile against the back wall as the
tubecar careens toward GDH7-beta. Your only solace is the knowledge that it
could be worse, much worse.
Before too long the car comes to a stop. You can see signs for GDH7-beta
through the window. With a little practice you discover that you can crawl
to the door and pull open the latch.
"""
return self.more(self.page14)
def page14(self):
print """\
You manage to pull yourself out of the tubecar and look around. Before you is
one of the most confusing things you have ever seen, a hallway that is
simultaneously both red and green clearance. If this is the result of
Christmas then it's easy to see the evils inherent in its practice.
You are in the heart of a large goods distribution centre. You can see all
about you evidence of traitorous secret society Christmas celebration rubber
faced robots whiz back and forth selling toys to holiday shoppers, simul-plast
wreaths hang from every light fixture, while ahead in the shadows is a citizen
wearing a huge red synthetic flower.
"""
return self.more(self.page22)
def page15(self):
print """\
You are set upon by a runty robot with a queer looking face and two pointy
rubber ears poking from beneath a tattered cap. "Hey mister," it says,
"you done all your last minute Christmas shopping? I got some real neat junk
here. You don't wanna miss the big day tommorrow, if you know what I mean."
The robot opens its bag to show you a pile of shoddy Troubleshooter dolls. It
reaches in and pulls out one of them. "Look, these Action Troubleshooter(tm)
dolls are the neatest thing. This one's got moveable arms and when you
squeeze him, his little rifle squirts realistic looking napalm. It's only
50 credits. Oh yeah, Merry Christmas."
"""
return self.choose(
self.page16, "You decide to buy the doll.",
self.page17, "You shoot the robot.",
self.page22, "You ignore the robot and keep searching the hall.")
def page16(self):
print """\
The doll is a good buy for fifty credits it will make a fine Christmas present
for one of your friends. After the sale the robot rolls away. You can use
the doll later in combat. It works just like a cone rifle firing napalm,
except that occasionally it will explode and blow the user to smithereens.
But don't let that stop you.
"""
self.action_doll = True
return self.more(self.page22)
def page17(self):
print """\
You whip out your laser and shoot the robot, but not before it squeezes the
toy at you. The squeeze toy has the same effect as a cone rifle firing napalm,
and the elfbot's armour has no effect against your laser.
"""
robot_hp = 15
for _ in range(2):
if _dice_roll(1,100) <= 25:
print "You have been hit!"
self.hit_points -= _dice_roll(1,10)
if self.hit_points <= 0:
return self.new_clone(self.page45)
else:
print "It missed you, but not by much!"
if _dice_roll(1,100) <= 40:
print "You zapped the little bastard!"
robot_hp -= _dice_roll(2,10)
if robot_hp <= 0:
line_end = '.'
if self.hit_points < 10:
line_end = "\nafter the GDH medbot has patched you up."
self.hit_points = 10
print "You wasted it! Good shooting!"
break
else:
print "Damn! You missed!"
else:
print ("It tried to fire again, but the toy exploded and "
"demolished it.")
line_end = "."
if self.hit_points < 10:
line_end = "\nafter the GDH medbot has patched you up."
self.hit_points = 10
print ("You will need more evidence, so you search GDH7-beta further%s" %
line_end)
return self.more(self.page22)
def page18(self):
print """\
You walk to the centre of the hall, ogling like an infrared fresh from the
clone vats. Towering before you is the most unearthly thing you have ever
seen, a green multi armed mutant horror hulking 15 feet above your head.
Its skeletal body is draped with hundreds of metallic strips (probably to
negate the effects of some insidious mutant power), and the entire hideous
creature is wrapped in a thousand blinking hazard lights. It's times like
this when you wish you'd had some training for this job. Luckily the
creature doesn't take notice of you but stands unmoving, as though waiting for
a summons from its dark lord, the Master Retailer.
WHAM, suddenly you are struck from behind.
"""
if _dice_roll(2,10) < self.agility:
page = self.page19
else:
page = self.page20
return self.more(page)
def page19(self):
print """\
Quickly you regain your balance, whirl and fire your laser into the Ultraviolet
citizen behind you. For a moment your heart leaps to your throat, then you
realise that he is indeed dead and you will be the only one filing a report on
this incident. Besides, he was participating in this traitorous Christmas
shopping, as is evident from the rain of shoddy toys falling all around you.
Another valorous deed done in the service of The Computer!
"""
self.killer_count += 1
if self.killer_count > self.maxkill - self.clone:
return self.more(self.page21)
elif self.read_letter:
return self.more(self.page22)
else:
return self.choose(
self.page34, "You search the body, keeping an eye open for "
"Internal Security",
self.page22, "You run away like the cowardly dog you are")
def page20(self):
print """\
Oh no! you can't keep your balance. You're falling, falling head first into
the Christmas beast's gaping maw. It's a valiant struggle you think you are
gone when its poisonous needles dig into your flesh, but with a heroic effort
you jerk a string of lights free and jam the live wires into the creature's
spine. The Christmas beast topples to the ground and begins to burn, filling
the area with a thick acrid smoke. It takes only a moment to compose yourself,
and then you are ready to continue your search for the Master Retailer.
"""
return self.more(self.page22)
def page21(self):
print """\
You have been wasting the leading citizens of Alpha Complex at a prodigious
rate. This has not gone unnoticed by the Internal Security squad at GDH7-beta.
Suddenly, a net of laser beams spear out of the gloomy corners of the hall,
chopping you into teeny, weeny bite size pieces.
"""
return self.new_clone(self.page45)
def page22(self):
print """\
You are searching Goods Distribution Hall 7-beta.
"""
choices = [self.page18, self.page15, self.page18, self.page29]
return self.more(choices[_dice_roll(1, 4) - 1])
def page23(self):
print """\
You go to the nearest computer terminal and declare yourself a mutant.
"A mutant, he's a mutant," yells a previously unnoticed infrared who had
been looking over your shoulder. You easily gun him down, but not before a
dozen more citizens take notice and aim their weapons at you.
"""
return self.choose(
self.page28, "You tell them that it was really only a bad joke",
self.page24, "You want to fight it out, one against twelve")
def page24(self):
print """\
Golly, I never expected someone to pick this. I haven't even designed
the 12 citizens who are going to make a sponge out of you. Tell you what,
I'll give you a second chance.
"""
return self.choose(
self.page28, "You change your mind and say it was only a bad joke",
self.page25, "You REALLY want to shoot it out")
def page25(self):
print """\
Boy, you really can't take a hint!
They're closing in. Their trigger fingers are twitching, they're about to
shoot. This is your last chance.
"""
return self.choose(
self.page28, "You tell them it was all just a bad joke",
self.page26, "You are going to shoot")
def page26(self):
print """\
You can read the cold, sober hatred in their eyes (They really didn't think
it was funny), as they tighten the circle around you. One of them shoves a
blaster up your nose, but that doesn't hurt as much as the multi-gigawatt
carbonium tipped food drill in the small of your back.
You spend the remaining micro-seconds of your life wondering what you did wrong
"""
return self.new_clone(self.page32)
def page27(self):
# doesn't exist. Can't happen with computer version.
# designed to catch dice cheats
print "cheat..."
self.more()
return None
def page28(self):
print "They don't think it's funny."
return self.more(self.page26)
def page29(self):
print """\
"Psst, hey citizen, come here. Pssfft," you hear. When you peer around
you can see someone's dim outline in the shadows. "I got some information
on the Master Retailer. It'll only cost you 30 psst credits."
"""
return self.choose(
self.page30, "You pay the 30 credits for the info.",
self.page31, "You would rather threaten him for the information.",
self.page22, "You ignore him and walk away.")
def page30(self):
print """\
You step into the shadows and offer the man a thirty credit bill. "Just drop
it on the floor," he says. "So you're looking for the Master Retailer, pssfft?
I've seen him, he's a fat man in a fuzzy red and white jump suit. They say
he's a high programmer with no respect for proper security. If you want to
find him then pssfft step behind me and go through the door."
Behind the man is a reinforced plasteel blast door. The centre of it has been
buckled toward you in a manner you only saw once before when you were field
testing the rocket assist plasma slingshot (you found it easily portable but
prone to misfire). Luckily it isn't buckled too far for you to make out the
warning sign. WARNING!! Don't open this door or the same thing will happen to
you. Opening this door is a capital offense. Do not do it. Not at all. This
is not a joke.
"""
return self.choose(
self.page56, "You use your Precognition mutant power on opening "
"the door.",
self.page33, "You just go through the door anyway.",
self.page22, "You decide it's too dangerous and walk away.")
def page31(self):
print """\
Like any good troubleshooter you make the least expensive decision and threaten
him for information. With lightning like reflexes you whip out your laser and
stick it up his nose. "Talk, you traitorous Christmas celebrator, or who nose
what will happen to you, yuk yuk," you pun menacingly, and then you notice
something is very wrong. He doesn't have a nose. As a matter of fact he's
made of one eighth inch cardboard and your laser is sticking through the other
side of his head. "Are you going to pay?" says his mouth speaker,
"or are you going to pssfft go away stupid?"
"""
return self.choose(
self.page30, "You pay the 30 credits",
self.page22, "You pssfft go away stupid")
def page32(self):
print """\
Finally it's your big chance to prove that you're as good a troubleshooter
as your previous clone. You walk briskly to mission briefing and pick up your
previous clone's personal effects and notepad. After reviewing the notes you
know what has to be done. You catch the purple line to Goods Distribution Hall
7-beta and begin to search for the blast door.
"""
return self.more(self.page22)
def page33(self):
print """\
You release the megabolts on the blast door, then strain against it with your
awesome strength. Slowly the door creaks open. You bravely leap through the
opening and smack your head into the barrel of a 300 mm 'ultra shock' class
plasma cannon. It's dark in the barrel now, but just before your head got
stuck you can remember seeing a group of technicians anxiously watch you leap
into the room.
"""
self.blast_door = True
if self.ultra_violet:
return self.more(self.page35)
else:
return self.more(self.page36)
def page34(self):
print """\
You have found a sealed envelope on the body. You open it and read:
"WARNING: Ultraviolet Clearance ONLY. DO NOT READ.
Memo from Chico-U-MRX4 to Harpo-U-MRX5.
The planned takeover of the Troubleshooter Training Course goes well, Comrade.
Once we have trained the unwitting bourgeois troubleshooters to work as
communist dupes, the overthrow of Alpha Complex will be unstoppable. My survey
of the complex has convinced me that no one suspects a thing soon it will be
too late for them to oppose the revolution. The only thing that could possibly
impede the people's revolution would be someone alerting The Computer to our
plans (for instance, some enterprising Troubleshooter could tell The Computer
that the communists have liberated the Troubleshooter Training Course and plan
to use it as a jumping off point from which to undermine the stability of all
Alpha Complex), but as we both know, the capitalistic Troubleshooters would
never serve the interests of the proletariat above their own bourgeois desires.
P.S. I'm doing some Christmas shopping later today. Would you like me to pick
you up something?"
"""
self.more()
print """\
When you put down the memo you are overcome by that strange deja'vu again.
You see yourself talking privately with The Computer. You are telling it all
about the communists' plan, and then the scene shifts and you see yourself
showered with awards for foiling the insidious communist plot to take over the
complex.
"""
self.read_letter = True
return self.choose(
self.page46, "You rush off to the nearest computer terminal to "
"expose the commies",
self.page22, "You wander off to look for more evidence")
def page35(self):
print """\
"Oh master," you hear through the gun barrel, "where have you been? It is
time for the great Christmas gifting ceremony. You had better hurry and get
the costume on or the trainee may begin to suspect." For the second time
today you are forced to wear attire not of your own choosing. They zip the
suit to your chin just as you hear gunfire erupt behind you.
"Oh no! Who left the door open? The commies will get in. Quick, fire the
laser cannon or we're all doomed."
"Too late you capitalist swine, the people's revolutionary strike force claims
this cannon for the proletariat's valiant struggle against oppression. Take
that, you running dog imperialist lackey. ZAP, KAPOW"
Just when you think that things couldn't get worse, "Aha, look what we have
here, the Master Retailer himself with his head caught in his own cannon. His
death will serve as a symbol of freedom for all Alpha Complex.
Fire the cannon."
"""
return self.new_clone(self.page32)
def page36(self):
print """\
"Congratulations, troubleshooter, you have successfully found the lair of the
Master Retailer and completed the Troubleshooter Training Course test mission,"
a muffled voice tells you through the barrel. "Once we dislodge your head
from the barrel of the 'Ultra Shock' plasma cannon you can begin with the
training seminars, the first of which will concern the 100% accurate
identification and elimination of unregistered mutants. If you have any
objections please voice them now."
"""
choice = self.choose(
self.page32, "You appreciate his courtesy and voice an "
"objection.",
self.page23, "After your head is removed from the cannon, you "
"register as a mutant.",
self.page37, "After your head is removed from the cannon, you "
"go to the unregistered mutant identification and "
"elimination seminar.")
if choice == self.page32:
return self.new_clone(choice)
else:
return choice
def page37(self):
print """\
"Come with me please, Troubleshooter," says the Green clearance technician
after he has dislodged your head from the cannon. "You have been participating
in the Troubleshooter Training Course since you got off the tube car in
GDH7-beta," he explains as he leads you down a corridor. "The entire
Christmas assignment was a test mission to assess your current level of
training. You didn't do so well. We're going to start at the beginning with
the other student. Ah, here we are, the mutant identification and elimination
lecture." He shows you into a vast lecture hall filled with empty seats.
There is only one other student here, a Troubleshooter near the front row
playing with his Action Troubleshooter(tm) figure. "Find a seat and I will
begin," says the instructor.
"""
return self.more(self.page38)
def page38(self):
print """\
"I am Plato-B-PHI%d, head of mutant propaganda here at the training
course.
If you have any questions about mutants please come to me. Today I will be
talking about mutant detection. Detecting mutants is very easy. One simply
watches for certain tell tale signs, such as the green scaly skin, the third
arm growing from the forehead, or other similar disfigurements so common with
their kind. There are, however, a few rare specimens that show no outward sign
of their treason. This has been a significant problem, so our researchers have
been working on a solution. I would like a volunteer to test this device,"
he says, holding up a ray gun looking thing. "It is a mutant detection ray.
This little button detects for mutants, and this big button stuns them once
they are discovered. Who would like to volunteer for a test?"
The Troubleshooter down the front squirms deeper into his chair.
""" % self.plato_clone
return self.choose(
self.page39, "You volunteer for the test",
self.page40, "You duck behind a chair and hope the instructor "
"doesn't notice you")
def page39(self):
print """\
You bravely volunteer to test the mutant detection gun. You stand up and walk
down the steps to the podium, passing a very relieved Troubleshooter along the
way. When you reach the podium Plato-B-PHI%d hands you the mutant detection gun
and says, "Here, aim the gun at that Troubleshooter and push the small button.
If you see a purple light, stun him." Grasping the opportunity to prove your
worth to The Computer, you fire the mutant detection ray at the Troubleshooter.
A brilliant purple nimbus instantly surrounds his body. You slip your finger
to the large stun button and he falls writhing to the floor.
"Good shot," says the instructor as you hand him the mutant detection gun,
"I'll see that you get a commendation for this. It seems you have the hang
of mutant detection and elimination. You can go on to the secret society
infiltration class. I'll see that the little mutie gets packaged for
tomorrow's mutant dissection class."
""" % self.plato_clone
return self.more(self.page41)
def page40(self):
print """\
You breathe a sigh of relief as Plato-B-PHI%d picks on the other Troubleshooter.
"You down here in the front," says the instructor pointing at the other
Troubleshooter, "you'll make a good volunteer. Please step forward."
The Troubleshooter looks around with a `who me?' expression on his face, but
since he is the only one visible in the audience he figures his number is up.
He walks down to the podium clutching his Action Troubleshooter(tm) doll before
him like a weapon. "Here," says Plato-B-PHI%d, "take the mutant detection ray
and point it at the audience. If there are any mutants out there we'll know
soon enough." Suddenly your skin prickles with static electricity as a bright
purple nimbus surrounds your body. "Ha Ha, got one," says the instructor.
"Stun him before he gets away."
""" % (self.plato_clone, self.plato_clone)
self.more()
page = None
while page is None:
if _dice_roll(1,100) <= 30:
print "His shot hits you. You feel numb all over."
page = self.page49
else:
print "His shot just missed."
if _dice_roll(1,100) <= 40:
print ("You just blew his head off. His lifeless hand "
"drops the mutant detector ray.")
page = self.page50
else:
print ("You burnt a hole in the podium. He sights the "
"mutant detector ray on you.")
return self.more(page)
def page41(self):
print """\
You stumble down the hallway of the Troubleshooter Training Course looking for
your next class. Up ahead you see one of the instructors waving to you. When
you get there he shakes your hand and says, "I am Jung-I-PSY. Welcome to the
secret society infiltration seminar. I hope you ..." You don't catch the
rest of his greeting because you're paying too much attention to his handshake
it is the strangest thing that has ever been done to your hand, sort of how it
would feel if you put a neuro whip in a high energy palm massage unit.
It doesn't take you long to learn what he is up to you feel him briefly shake
your hand with the secret Illuminati handshake.
"""
return self.choose(
self.page42, "You respond with the proper Illuminati code phrase, "
'"Ewige Blumenkraft"',
self.page43, "You ignore this secret society contact")
def page42(self):
print """\
"Aha, so you are a member of the elitist Illuminati secret society," he says
loudly, "that is most interesting." He turns to the large class already
seated in the auditorium and says, "You see, class, by simply using the correct
hand shake you can identify the member of any secret society. Please keep your
weapons trained on him while I call a guard.
"""
return self.choose(
self.page51, "You run for it",
self.page52, "You wait for the guard")
def page43(self):
print """\
You sit through a long lecture on how to recognise and infiltrate secret
societies, with an emphasis on mimicking secret handshakes. The basic theory,
which you realise to be sound from your Iluminati training, is that with the
proper handshake you can pass unnoticed in any secret society gathering.
What's more, the proper handshake will open doors faster than an 'ultra shock'
plasma cannon. You are certain that with the information you learn here you
will easily be promoted to the next level of your Illuminati secret society.
The lecture continues for three hours, during which you have the opportunity
to practice many different handshakes. Afterwards everyone is directed to
attend the graduation ceremony. Before you must go you have a little time to
talk to The Computer about, you know, certain topics.
"""
return self.choose(
self.page44, "You go looking for a computer terminal",
self.page55, "You go to the graduation ceremony immediately")
def page44(self):
print """\
You walk down to a semi-secluded part of the training course complex and
activate a computer terminal. "AT YOUR SERVICE" reads the computer screen.
"""
if self.read_letter:
return self.choose(
self.page23, "You register yourself as a mutant.",
self.page46, "You want to chat about the commies.",
self.page55, "You change your mind and go to the graduation "
"ceremony.")
else:
return self.choose(
self.page23, "You register yourself as a mutant",
self.page55, "You change your mind and go to the graduation "
"ceremony")
def page45(self):
print """\
"Hrank Hrank," snorts the alarm in your living quarters. Something is up.
You look at the monitor above the bathroom mirror and see the message you have
been waiting for all these years. "ATTENTION TROUBLESHOOTER, YOU ARE BEING
ACTIVATED. PLEASE REPORT IMMEDIATELY TO MISSION ASSIGNMENT ROOM A17/GAMMA/LB22.
THANK YOU. THE COMPUTER IS YOUR FRIEND." When you arrive at mission
assignment room A17-gamma/LB22 you are given your previous clone's
remaining possessions and notebook. You puzzle through your predecessor's
cryptic notes, managing to decipher enough to lead you to the tube station and
the tube car to GDH7-beta.
"""
return self.more(self.page10)
def page46(self):
print """\
"Why do you ask about the communists, Troubleshooter? It is not in the
interest of your continued survival to be asking about such topics," says
The Computer.
"""
return self.choose(
self.page53, "You insist on talking about the communists",
self.page54, "You change the subject")
def page47(self):
print """\
The Computer orders the entire Vulture squadron to terminate the Troubleshooter
Training Course. Unfortunately you too are terminated for possessing
classified information.
Don't act so innocent, we both know that you are an Illuminatus which is in
itself an act of treason.
Don't look to me for sympathy.
THE END
"""
self.more()
return None
def page48(self):
print """\