-
Notifications
You must be signed in to change notification settings - Fork 3
/
storySource.txt
1416 lines (1273 loc) · 51 KB
/
storySource.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
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
[helpful links
-Action Syntax Guide: http://inform7.com/learn/documents/I7_syntax.txt
-Implied Object Structure: http://www.ifwiki.org/index.php/Inform_7_for_Programmers/Part_1
]
"Retrospect" by "GroopOfFore"
Include Automap by Mark Tilford.
Use automap static allocation.
Include Basic Help Menu by Emily Short.
Include Basic Screen Effects by Emily Short.
After printing the banner text, say "[line break][line break]Another day, another crime to investigate. That's the life you chose as a detective. You've arrived at a house where a murder has taken place. The police are already here, but they've requested you to come and search for any clues that may help with the murder.".
[DEF ABSTRACTIONS]
[DEF ACTIONS]
Destroying is an action applying to one thing.
Understand "destroy" as destroying.
Understand "break" as destroying.
Understand "annihilate" as destroying.
Being is an action applying to nothing.
Understand "be" as being.
Carry out being:
Say "Yup.".
Using is an action applying to one thing.
Understand "use" as using.
Watering is an action applying to one thing.
Understand "water [thing]" as watering.
Listing is an action applying to one thing.
Understand "list [thing]" as listing.
Leveling up is an action applying to nothing.
Understand "level up" as leveling up.
Reading is an action applying to one thing.
Understand "read [thing]" as reading.
Picking is an action applying to a thing.
Understand "pick [door]" as picking.
Talking is an action applying to one thing.
Understand "talk [person]" as talking.
Understand "talk to [person]" as talking.
Killing is an action applying to one thing and one carried thing.
Understand "kill [thing] with [something preferably held]" as killing.
Hiding is an action applying to one carried thing and a thing.
Understand "hide [something preferably held] under [thing]" as hiding.
Understand "hide [something preferably held] in [thing]" as hiding.
Turning On is an action applying to one thing.
Understand "turning on [thing]" as switching on.
Turning Off is an action applying to one thing.
Understand "turning off [thing]" as switching off.
Password Unlocking is an action applying to one thing.
Understand "password unlock [thing]" as password unlocking.
Pouring is an action applying to two things.
Understand "pour [something preferably held] into [thing]" as pouring.
Understand "pour [something preferably held] in [thing]" as pouring.
Tying is an action applying to two things.
Understand "tie [thing] with [something preferably held]" as tying.
[DEF ACTION OVERRIDES]
Instead of taking something:
if Murder is the Current Scene
begin;
Say "You have a job to do. Now isn't the time.";
otherwise;
continue the action;
end if;
[DEF GLOBAL VARS]
The Maximum Score is 20. [2x num of clues (whatever that becomes)]
The Score is 0.
Use scoring.
The stageCount is a number that varies.
The stageCount is 0.
The stagingPassedCutoff is a number that varies.
The stagingPassedCutoff is 5;
The clueCount is a number that varies.
The clueCount is 0.
The investigationPassedCutoff is a number that varies.
The investigationPassedCutoff is 5;
The clueFlag is a number that varies. [triggers murder scene]
The clueFlag is 0.
The deathFlag is a number that varies. [triggers staging scene]
The deathFlag is 0.
[DEF PROPERTIES]
A thing has some text called content.
The content of a thing is usually "".
A thing has some text called smell.
A thing has some text called deathStatus.
The deathStatus of a thing is usually "alive".
A thing has some text called discoveredStatus.
The discoveredStatus of a thing is usually "false".
A thing has some text called stagedStatus.
The stagedStatus of a thing is usually "false".
[DEF SCENES]
Current Scene is a scene that varies.
Investigation is a scene.
Investigation begins when the player is in the Front Yard for the first time.
Investigation ends when Investigation is the Current Scene AND the clueFlag is 1.
[Investigation ends when Investigation begins.]
Murder is a scene.
Murder begins when Investigation ends.
Murder ends when Murder is the Current Scene AND the deathFlag is 1.
[Murder ends when Murder begins.]
Staging is a scene.
Staging begins when Murder ends.
The Current Scene is Investigation.
When Investigation ends:
Now the Current Scene is Murder;
Clear the screen;
Say "One day ago.[line break]You are now the murderer.";
When Murder begins:
Move the player to the Back Yard;
When Murder ends:
Now the Current Scene is Staging;
[DEF ROOMS/DOORS]
Front Yard is a room.
Living Room is a room.
Garage is a room.
Kitchen is a room.
Back Yard is a room.
Upstairs is a room.
Master Bedroom is a room.
Child's Bedroom is a room.
The sentinel is a thing.
The sentinel can be on or off.
The sentinel is on.
The back door is a door.
The back door can be broken or not broken.
When Investigation begins:
Now the back door is broken;
When Murder begins:
Now the back door is not broken;
Instead of picking the back door:
Say "Picking... (press random keys)[line break]";
while the sentinel is on
begin;
Wait for any key;
Say "[if a random chance of 1 in 2 succeeds]*click*[otherwise]*clank*[end if][line break]";
if a random chance of 1 in 5 succeeds [this is the best RND I've ever seen]
begin;
Say "Done.";
Now the back door is unlocked;
stop;
end if;
end while;
The front door is a door.
The front door can be broken or not broken.
When Investigation begins:
Now the front door is broken.
When Murder begins:
Now the front door is not broken.
The description is "The front door is black and made of oak.[if the front door is broken]The window on the door has been smashed.[end if][if the front door is unlocked] It's unlocked[end if]".
Instead of picking the Front Door:
Say "Picking... (press random keys)[line break]";
while the sentinel is on
begin;
Wait for any key;
Say "[if a random chance of 1 in 2 succeeds]*click*[otherwise]*clank*[end if][line break]";
if a random chance of 1 in 5 succeeds
begin;
Say "Done.";
Now the front door is unlocked;
stop;
end if;
end while;
The fence gate is a door.
The fence gate is unlocked.
The fence gate is closed.
Instead of opening the fence gate:
if Investigation is the Current Scene
begin;
Say "The police have already searched this area and found nothing.";
otherwise if Murder is the Current Scene;
Say "You already entered from here. You aren't ready to go back.";
otherwise if Staging is the Current Scene;
if stageCount > stagingPassedCutoff
begin;
End the story;
otherwise;
Say "You aren't ready to leave yet. Perhaps you should stage more clues.";
end if;
end if;
[DEF ROOM LOCATIONS]
Living Room is north of front door.
Garage is west of Living Room.
Kitchen is north of Living Room.
Upstairs is above Kitchen.
Back Yard is north of Back Door.
Master Bedroom is east of Upstairs.
Child's Bedroom is south of Upstairs.
The front door is north of the Front Yard and south of the Living Room.
The back door is north of the Kitchen and south of Back Yard.
The fence gate is north of the Back Yard.
When Investigation begins:
Now the front door is unlocked;
Now the back door is unlocked;
When Murder begins:
Now the front door is locked;
Now the back door is locked;
[DEF INVENTORY]
The pick gun is a thing.
The description is "A pick gun. Pick guns can be used to unlock most residential locks.".
The pick gun unlocks the back door.
The pick gun unlocks the front door.
The burner phone is a thing.
The description is "A burner phone with local Ketamine dealers in the contacts.".
The machete is a thing.
The description is "A sharpened machete with a wooden handle.".
The email drafts are a thing.
The indefinite article is "some".
The description is "Email drafts alluding to a drug buy.".
The zip ties are a thing.
The indefinite article is "some".
The description is "Black industrial zip ties.".
The vial is a thing.
The description is "A vial of Ketamine.".
The needle is a thing.
The description is "An empty needle.".
The scale is a thing.
The description is "A scale with decimals of precision.".
Your phone is a thing.
The player is carrying your phone.
Instead of dropping your phone, say "You won’t risk that until you’ve bought a case for it.".
Your clothes are a thing.
The description is "Just a typical suit. Your shoes look like they need to be polished."
The player is carrying your clothes.
Instead of dropping your clothes, say "Nudity is not acceptable in this society.".
Instead of eating your clothes, say "You put your sleeve in your mouth and bite down. There are now teeth marks on your arm.[if the player is in the front yard] The police officer looks at you and raises his eyebrow.[end if]".
[inv inits]
When Murder begins:
Now the player has the pick gun;
Now the player has the burner phone;
Now the player has the machete;
Now the player has the email drafts;
Now the player has the zip ties;
Now the player has the vial;
Now the player has the needle;
Now the player has the scale.
[DEF SCENERY]
[Front Yard]
The forest is in the Front Yard.
The forest is scenery.
The description is "The pine forest stands tall and strong with age. [if we have not examined the forest]The trees sway lightly in the breeze, as if they're friends.[end if]".
The house is in the Front Yard.
The house is scenery.
The description is "The house is two stories with a shale facade and brushed bronze accents.".
The driveway is in the Front Yard.
The driveway is scenery.
The description is "The driveway looks new but there are dandelions growing between the section cracks. You've always hated dandelions.[if we have not examined the driveway] *ah Ah ACHOO* You wipe your nose on a napkin and put it back in your back pocket.[end if]".
The porch is in the Front Yard.
The porch is scenery.
The description is "The porch has beautiful hanging flower pots that are budding. The handrail rails are made from black woven metal and brushed bronze.".
The path is in the Front Yard.
The path is scenery.
The description is "The path connects the front porch to the driveway and passes the bushes. It is made of dark river stones. [if we have not examined the path]They crunch softly beneath your feet.[end if]".
The lawn is in the Front Yard.
The lawn is scenery.
The description is "The lawn is freshly mown and free of debris and weeds.".
The apple tree is in the Front Yard.
The apple tree is scenery.
The description is "The tree looks to be a few years old. It bears fruit, but it's not ripe enough to eat.".
[Living Room]
The lamp is in the Living Room.
The lamp is scenery.
The description is "Just your typical lamp. It doesn't seem to be working".
[Garage]
[Kitchen]
[Back Yard]
This house is in the Back Yard.
The house is scenery.
The description is "The house is two stories with a shale facade and brushed bronze accents.".
The backdoor is in the Back Yard.
The back door is scenery.
The description is "The back door hangs on one hinge, its lock splintered. It swings slowly in the breeze, sometimes banging into the side of the house.".
The field is in the Back Yard.
The field is scenery.
The description is "The field is a display of vibrant, unmowed grass speckled with purple and yellow wildflowers. The landscape hazily reminds you of happier summers gone by.".
The shovel is in the Back Yard.
The fence is in the Back Yard.
The fence is scenery.
The description is "A tan picket fence delineates the yard's perimeter. Its frame is wrapped in thin vines of honeysuckle, with bumblebees flitting around their blooms. There is a gate to the north of the yard.".
The flowerbed is in the Back Yard.
The description is "Tulips. Your least favorite flower."
[Upstairs]
[Master Bedroom]
[Child's Bedroom]
The window is in the Child's Bedroom.
The window is scenery.
The description is "A pine forest can be seen. Just past the edge of the forest, you can see a duck blind.".
[DEF OBJECTS]
[dynamic surroundings
tracks the location/scope of the player and updates its position
allowing the government to always 'examine surroundings'.]
The surroundings are a thing.
The indefinite article is "some".
After deciding the scope of the player:
Place the surroundings in scope;
[Place the surroundings in scope.]
if the player is in the Front Yard,
Move the surroundings to the Front Yard
instead;
if the player is in the Living Room,
Move the surroundings to the Living Room
instead;
if the player is in the Garage,
Move the surroundings to the Garage
instead;
if the player is in the Kitchen,
Move the surroundings to the Kitchen
instead;
if the player is in the Upstairs,
Move the surroundings to the Upstairs
instead;
if the player is in the Back Yard,
Move the surroundings to the Back Yard
instead;
if the player is in the Master Bedroom,
Move the surroundings to the Master Bedroom
instead;
if the player is in the Child's Bedroom,
Move the surroundings to the Child's Bedroom
instead;
Instead of examining the surroundings:
if the player is in the Front Yard,
Say "You see an earthy house surrounded by a forest. There are several objects that would ordinarily belong in a front yard. You can see the front door to the house to the north."
instead;
if the player is in the Living Room,
Say "Not many objects for a living room besides a couch and TV. The couch has some tears in it and parts of the wall are torn[if Investigation is the current scene]The couch seems to be positioned such that you could see the kitchen, garage door, and front door when you sit down.[otherwise]It would be hard to get through this room without being seen by someone sitting in the couch. You have a strange urge to avoid going between the couch and TV. The front door of the house leading to the front yard is to the south. To the west is the garage and to the north is the kitchen."
instead;
if the player is in the Garage,
Say "A standard garage containing a car, some tools, and pipes. You notice some termite holes in the walls and ceiling.[if Murder is the current scene or Staging is the current scene] You immediately try to open the door, it's as if you are used to it being locked.[end if] The living room is to the east."
instead;
if the player is in the Kitchen,
Say "Your average kitchen with a refrigerator and refrigerator. There are stairs leading upstairs and a living room to the south. To the north, the back door of the house separates you from the sunny outdoors."
instead;
if the player is in the Upstairs,
Say "[if Investigation is the current scene]An average hallway with a few pictures hanging on the wall.[otherwise]You try to take a look at some of the pictures hanging on the wall. You clench your teeth looking at the man's smug grin. The child's face gives you a chill down your spine.[end if] The kitchen is downstairs. The child's bedroom is to the south and the master bedroom is to the east."
instead;
if the player is in the Back Yard,
Say "You see a field of vibrant, unmowed grass surrounded by forest dense enough to shroud the yard from all other signs of civilization. From there the house seems like a haven, hidden away from the rest of humanity. To the south is the back door to the kitchen of the house."
instead;
if the player is in the Master Bedroom,
Say "The large bed and desk are the only two significant furniture in here. [if Investigation is the current scene]Even working your whole life as P.I. you still can't get over the smell of dead corpses.[otherwise]The room feels small, or is that just you? The upstairs hallway is to the west."
instead;
if the player is in the Child's Bedroom,
Say "[if Investigation is the current scene]There is a small bed and a bookshelf. No reason for any criminal activity in here.[otherwise]You look under the bed's pillow and see it's stained with blood. You shake your head and realize it's just your imagination.[end if] The upstairs hallway is north of you."
instead;
[list scenery for further examination]
Instead of listing the surroundings:
if the player is in the Front Yard,
Say "You see a forest, a house, a driveway, a porch, a path, a front door, a lawn, a mail box, and an apple tree in your surroundings."
instead;
if the player is in the Living Room,
Say "Living Room list"
instead;
if the player is in the Garage,
Say "Garage list"
instead;
if the player is in the Kitchen,
Say "Kitchen list"
instead;
if the player is in the Upstairs,
Say "Upstairs list"
instead;
if the player is in the Back Yard,
Say "You can see the house, its back door, a field, a swing set, a fence, a flower bed, and a pond."
instead;
if the player is in the Master Bedroom,
Say "Master Bedroom list"
instead;
if the player is in the Child's Bedroom,
Say "Child's Room list"
instead;
Instead of taking the surroundings:
Do nothing.
[Front Yard]
The police officer is in the Front Yard.
The police officer is a person.
The description is "Just your everyday typical police officer."
The police officer is fixed in place.
Instead of talking the police officer:
if Investigation is the Current Scene
begin;
if clueCount > investigationPassedCutoff
begin;
Say "Looks like this one is turning out to be pretty cut and dry. [if score > 4] Clearly t[otherwise]T[end if]his guy was offed by a local cartel. We'll get some more detectives down here to figure out which group was responsible for this butchery. Press any key to continue...";
Wait for any key;
Now the clueFlag is 1;
otherwise;
Say "You'd better keep looking for clues instead of chitchatting or the chief is gonna get pissed.";
end if;
end if;
When Murder begins:
Now the police officer is in the pond;
The bushes are a container.
The bushes are in the Front Yard.
Understand "bush" as bushes.
The indefinite article is "some".
The description is "The bushes have beautiful white flowers [if the bushes are not watered]on them, but they could use some water.[otherwise]that glisten in the morning sun.[end if]".
The bushes are fixed in place.
The bushes are enterable.
After entering the bushes:
say "Ow, that hurt. At least I'm in a bush now.".
The bushes can be watered or not watered.
The bushes are not watered.
Instead of watering the bushes:
if Investigation is the Current Scene
begin;
if the player has the nozzle and the nozzle is switched on
begin;
Say "You water the bushes.";
Now the bushes are watered;
otherwise if the player has the nozzle and the nozzle is switched off;
Say "You can't water the bushes when the nozzle is off.";
otherwise;
Say "You have nothing with which to water the plant.";
end if;
end if.
The nozzle is a thing.
The description is "The nozzle's plastic is sunbaked and brittle. It is unclear if it has been used recently.".
The nozzle can be switched on or switched off.
The nozzle is switched off.
Instead of switching on the nozzle:
Say "The hose controls the nozzle.".
Instead of switching off the nozzle:
Say "The hose controls the nozzle.".
The garden hose is a thing.
The garden hose is in the Front Yard.
The description is "The garden hose has a nozzle attached to it for watering plants.".
The garden hose is fixed in place.
After examining the garden hose for the first time:
if Investigation is the Current Scene
begin;
Move the nozzle to the Front Yard;
end if.
The garden hose can be switched on or switched off.
The garden hose is switched off.
Instead of switching on the garden hose:
if Investigation is the Current Scene
begin;
Now the nozzle is switched on;
Say "The nozzle is now turned on.";
end if;
After switching off the garden hose:
if Investigation is the Current Scene
begin;
Now the nozzle is switched off;
Say "The nozzle is now turned off.";
end if;
The mail box is a container.
The mail box is in the Front Yard.
The description of the mail box is "The house number 606 is on its side.[if the mail box is open] The mail box is empty.[end if]".
Understand "mailbox" as mail box.
The mail box is fixed in place.
The magazine is a thing.
The magazine is in the mailbox.
The description is "TaeKwonDo Times.".
[dynamic properties]
When Investigation begins:
[mail box]
Now the mail box is openable;
Now the mail box is closed;
[Living Room]
The couch is a thing.
Understand "sofa" as the couch.
The couch is in the Living Room.
The description is "Just a couch".
Instead of taking the couch:
If Staging is the current scene
begin;
Say "Houses typically have couches";
otherwise;
continue the action;
end if;
The TV is a thing.
Understand "Television" as the TV.
The TV is in the Living Room.
The description is "An old television. It doesn't seem to be working".
[Garage]
The hood is a thing.
The hood is fixed in place.
The description is "The hood is slightly open. I wonder if there's anything underneath.".
The crystal meth is a thing.
Instead of looking under the hood for the first time:
Now the crystal meth is in Garage;
say "You lift the hood open. Underneath, you find a small compartment filled with crystal meth.".
The description of crystal meth is "Crystal meth is a heavy drug. Worth a lot of money too.".
After examining the crystal meth:
increase the clueCount by 2.
The keyring is a thing.
When Investigation begins:
Now the keyring is in the car;
Instead of taking the keyring:
Now the player has the keyring;
Say "You take the keyring.";
The car is a container.
The car is in the Garage.
The car is fixed in place.
The description is "A Toyota. Must be at least 20 years old".
The car is enterable.
The car is openable.
The car is closed.
After examining the car for the first time:
Now the hood is in the Garage;
say "The hood of the car is slightly ajar.".
The hand drill is a thing.
The description is "A common household tool.".
The wrench is a thing.
The description is "A common household tool".
The screwdriver is a thing.
The description is "A common household tool".
The hammer is a thing.
The description is "A common household tool.".
The tool bench is a thing.
The tool bench is in the Garage.
The tool bench is fixed in place.
The description is "An old rusty tool bench.".
The tool bench contains a wrench, a screwdriver, a hand drill, and a hammer.
The power box is a thing.
The power box is in the Garage.
The power box is fixed in place.
The power box can be broken or not broken.
After examining the power box for the first time:
if Investigation is the current scene
begin;
increase the clueCount by 2;
end if;
When Investigation begins:
Now the description of the power box is "It provides electricity to the house. It seems to have been smashed by something";
Now the power box is broken;
When Investigation ends:
Now the description of the power box is "It provides electricity to the house";
Now the power box is not broken;
Instead of attacking the power box:
if Investigation is the current scene
begin;
Say "It's already broken.";
otherwise if Murder is the current scene;
Say "It's probably not wise to do that right now.";
otherwise if Staging is the current scene;
if the second noun is the machete or the second noun is the hammer
begin;
Say "The power box gives off a small burst of sparks, but it looks like [the second noun] did the trick.";
Now the power box is broken;
otherwise;
Say "You will need to find a stronger weapon";
end if;
end if;
[Kitchen]
The microwave is a container.
The microwave is in the Kitchen.
The microwave is fixed in place.
The microwave contains a ham sammich.
The sammich is edible.
After eating the sammich:
say "Maybe that was a bad idea. This is a crime scene, not a buffet.";
decrease score by 1.
The refrigerator is a container.
The refrigerator is fixed in place.
The refrigerator is in the Kitchen.
The refrigerator is enterable.
Understand "fridge" as refrigerator.
milk is a thing.
The description is "The expiration date says 606. Yuck."
The refrigerator contains the milk.
Instead of drinking milk, say "Not with that expiration date you're not.".
After entering the refrigerator:
Say "Your attempt to catch the door light as it turns off is a success. But now you're cold and it's dark in here.";
Decrease score by 1.
The oven is a container.
The oven is in the Kitchen.
The oven is fixed in place.
The oven contains an apple pie.
The apple pie is edible.
After eating the apple pie:
say "Maybe that was a bad idea. But a delicious one.";
decrease score by 1.
The spilled cup is a thing.
The spilled cup is in the Kitchen.
The description is "Smells of alcohol."
The dark stain is a thing.
The dark stain is in the Kitchen.
Instead of taking the dark stain, say "Do you even know how stains work?"
[Back Yard]
The swingset is a thing.
The swingset is in the Back Yard.
The description is "Two swings hang from an old wooden frame[if the swingset is not broken] by rusty chains. They sway and creak in the wind.[otherwise], each by a single chain. They drag on the ground as they sway in the wind.".
The swingset can be broken or not broken.
The swingset is not broken.
Instead of swinging:
if the swingset is not broken
begin;
Say "You decide to swing on a swing. Unsurprisingly, it breaks under your weight. You give the other swing a try, and once again you fall to the ground.";
Now the swingset is broken;
Decrease score by 1;
otherwise;
Say "You already broke the swingset.";
end if;
[Upstairs]
[Master Bedroom]
The desk is a container.
The desk is in the Master Bedroom.
The description is "A wooden desk with left and right drawers."
The desk is fixed in place.
The desk is openable.
The desk is closed.
The desk is locked.
When Investigation begins:
Now the vial is in the desk;
When Murder begins:
Now the desk is unlocked;
The left drawer is a container.
The left drawer is in the Master Bedroom.
The left drawer is fixed in place.
The left drawer is openable.
The left drawer is closed.
The right drawer is a container.
The right drawer is in the Master Bedroom.
The right drawer is fixed in place.
The right drawer is openable.
The right drawer is closed.
The guy is a person.
The guy is in the Master Bedroom.
The guy is fixed in place.
The deathStatus of the guy is "alive".
Instead of attacking the guy:
Say "Kill with what?";
Instead of killing the guy:
if Investigation is the Current Scene
begin;
Say "That wouldn't be very... professional.";
otherwise if Murder is the Current Scene;
if the deathStatus of the guy is "alive" AND the second noun is the machete
begin;
Say "After covering the man's mouth, you slit his neck with the [the second noun]. His screams are muffled by your hand and the blood running down his throat. He dies almost instantly.";
Now the deathStatus of the guy is "dead";
Now the deathFlag is 1;
otherwise if the deathStatus of the guy is "dead";
Say "That doesn't seem necessary.";
end if;
otherwise if Staging is the Current Scene;
Say "Playing with dead bodies isn't really your thing.";
end if;
Instead of talking the guy:
if Investigation is the Current Scene
begin;
Say "You wouldn't want your co-workers to think you're crazy. Would you?";
otherwise if Murder is the Current Scene;
Say "Despite your best efforts, you can't summon the courage to say something.";
otherwise if Staging is the Current Scene;
Say "You couldn't talk before, why would you be able to do that now?";
end if;
When Investigation begins:
Now the deathStatus of the guy is "dead";
Now the guy is in the pond;
When Murder begins:
Now the deathStatus of the guy is "alive";
Now the guy is in the Master Bedroom;
When staging begins:
Now the deathStatus of the guy is "dead";
Now the guy is in the pond;
Say "Now you need to stage everything to make it look like he was killed by a drug cartel.";
[Child's Bedroom]
The child's bed is a thing.
The bed is in the Child's Bedroom.
The description of the child's bed is "The child's bed looks normal.".
The child's bed is fixed in place.
Instead of smelling the bed:
Say "[if the smell of the noun is not empty]It smells [the smell of the noun].[paragraph break][otherwise]You smell nothing unexpected.[end if]".
The alarm clock is a thing.
The alarm clock is in the Child's Bedroom.
The description of the alarm clock is "An ordinary alarm clock. It's set to go off at 6:06 am.".
The alarm clock is fixed in place.
The math textbook is a thing.
The description of the math textbook is "You flip through the textbook. There are some poorly drawn genitals on page 606.".
Instead of reading the math textbook, say "Consider the function f(x) = 606. What kind of line would this make? Regardless of what values of x are inputed into the function, the only value of f(x) that ever comes out is 606. Therefore, this function would be graphed as a horizontal line, where each point on the line is at y = 606.".
The biology textbook is a thing.
The description of the biology textbook is "You see nothing interesting about the biology textbook. Since when has biology ever interested you?".
Instead of reading the biology textbook, say "Telomerase is an enzyme that exists in large amounts in regenerative cells."
The civics textbook is a thing.
The description of the civics textbook is "Ah. Another one of those books that pretends that our country is better than all the others.".
The backpack is a container.
The backpack is in the Child's Bedroom.
The description of the backpack is "An Avengers backpack. It contains Math 6, Biology, and Civics textbooks.".
After examining the backpack for the first time:
Now the backpack contains the math textbook;
Now the backpack contains the biology textbook;
Now the backpack contains the civics textbook;
The family photo is a thing.
The description is "A family of four. The photo is torn such that the father's face is ripped out."
The post-it note is a thing.
The description of the post-it note is "A text scribbled on a post-it note. It appears to say '4ceBew1thYou'. [if we have not examined the post-it note for the first time]It could be a password for something[end if]".
Instead of reading the post-it note:
Say "'4cebew1thYou''";
The bookshelf is a thing.
The bookshelf is in the Child's Bedroom.
The bookshelf is fixed in place.
Understand "shelf" as the bookshelf.
After examining the bookshelf:
Now the family photo is in the Child's Bedroom;
Now the post-it note is in the Child's Bedroom;
When Investigation begins:
Now the description of the bookshelf is "A wooden bookshelf. It has some books, a family photo, and Legos.";
When Investigation ends:
Now the description of the bookshelf is "";
When Murder begins:
Now the smell of the child's bed is "faintly of urine";
Now the description of the bookshelf is "A wooden bookshelf. It has the Hunger Games and Percy Jackson series neatly aligned on its third shelf. The other shelves are filled with Star Wars Legos and photos.";
Now the description of the family photo is "A family of four. An infant daughter is on the far left next to her mother. The father is on the far right and has placed his arm on his son's knee. The son is sitting cross-legged evenly between his mother and his father. Nobody seems thrilled to be in the photo.";
[DEF EVIDENCE]
[Front Yard]
[door smash]
[Living Room]
[
The ketamine powder is a thing.
Instead of looking under the couch:
if Investigation is the Current Scene
begin;
Say "You found some ketamine powder under the couch.";
if discoveredStatus of the ketamine powder is "false"
begin;
Increase the clueCount by 2;
Now the discoveredStatus of the ketamine powder is "true";
end if;
otherwise if Murder is the Current Scene;
Say "You find nothing of interest.";
otherwise if Staging is the Current Scene;
if stagedStatus of the ketamine powder is "true"
begin;
Say "You see some ketamine powder.";
otherwise;
Say "You find nothing of interest.";
end if;
end if;
Before inserting the ketamine powder into the couch:
if Murder is the Current Scene
begin;
Say "You have more important things to focus on right now.";
Reject the Player's command;
end if;
After inserting the ketamine powder into the couch:
if Staging is the Current Scene
begin;
If the stagedStatus of the ketamine powder is "false"
begin;
Increase stageCount by 2;
Now the stagedStatus of the ketamine powder is "true";
end if;
end if;
]
The glass shards are a thing.
The description is "The glass shards indicate someone broke into the home through the front door. The shards have an unusual pattern.".
When Investigation begins:
Now the glass shards are in the Living Room;
When Murder begins:
Now the glass shards are in the pond;
After examining the glass shards for the second time:
Say "The glass shards are collected in one localized area and direction.";
After examining the glass shards for the third time:
Say "The glass shards clearly indicate the door was broken inward. This must be a point of entry.";
if the discoveredStatus of the glass shards is "false"
begin;
Increase the clueCount by 2;
Now the discoveredStatus of the glass shards is "true";
end if;
Instead of attacking the front door:
if the front door is broken
begin;
Say "The door is already broken.";
otherwise;
if Murder is the Current Scene
begin;
Say "I wouldn't do that. It might wake someone up.";
otherwise if Staging is the current scene;
Say "You smash the door's window with your elbow.";
if the player is in the Front Yard
begin;
Say "The debris flies inward.";
if the stagedStatus of the glass shards is "false"
begin;
Increase the stageCount by 2;
Now the stagedStatus of the glass shards is "true";
end if;
end if;
end if;
end if;
The reminder is a thing.
The description of the reminder is "s@v3th3ch1ldr3n".
The laptop is a thing.
The description is "A modest HP Laptop.".
The laptop is in the Living Room.
The laptop can be locked or unlocked.
The laptop is locked.
Instead of password unlocking the laptop:
Now the command prompt is "Enter Password: ".
After reading a command when the command prompt is "Enter Password: ":
if Investigation is the Current Scene
begin;
if the Player's command matches "4cebew1thyou"
begin;
Say "Access Granted.";
Now the laptop is unlocked;
Now the command prompt is ">";
otherwise;
Say "Access Denied.";
Now the command prompt is ">";
Reject the Player's command;
end if;
otherwise if Murder is the Current Scene;
Say "You have more important things to focus on right now.";
otherwise if Staging is the Current Scene;
if the Player's command matches "s@v3th3ch1ldr3n"
begin;
Say "Access Granted.";
Now the laptop is unlocked;
Now the command prompt is ">";
otherwise;
Say "Access Denied.";
Now the command prompt is ">";
Reject the Player's command;
end if;
end if;
When Investigation begins:
Now the laptop is locked.
When Murder begins:
Now the laptop is locked.
Instead of examining the laptop:
if the laptop is unlocked
begin;
if Investigation is the Current Scene
begin;
Say "After a few minutes of looking through the owner's GMail account, you find some cryptic messages mentioning 'cat Valium' and 'jet'.";
if the discoveredStatus of the laptop is "false"
begin;
Increase clueCount by 3;
Now the discoveredStatus of the laptop is "true";
end if;
otherwise if Murder is the Current Scene;
Say "A murdering investigator huh?"; [this should never happen so easter egg]
otherwise if Staging is the Current Scene;
Say "After looking though the owner's email, you find nothing out of the ordinary.";
end if;
otherwise;
Say "A modest HP Laptop.";
end if;
Instead of looking under the laptop:
If Staging is the Current Scene
begin;
Say "You find a reminder taped to the bottom of the laptop and you take it.";
Now the player has the reminder;
otherwise;
Say "You find nothing here.";
end if;
Instead of inserting the email drafts into the laptop:
if the laptop is unlocked
begin;
if the Investigation is the Current Scene
begin;
Say "How in the F&*% you did you do this?";
otherwise if Murder is the Current Scene;
Say "You have more important things to focus on right now.";
otherwise if Staging is the Current Scene;
Say "The email drafts have been entered into the IMAP record.";
if the stagedStatus of the laptop is "false"
begin;
Increase the stageCount by 3;
Now the stagedStatus of the laptop is "true";
end if;
end if;
otherwise;
Say "The laptop is currently locked.";
end if;
[Kitchen]
The cabinets are a thing.
The indefinite article is "some".
The cabinets are in the Kitchen.
The cabinets can be broken or not broken.
When Investigation begins:
Now the cabinets are broken;
When Murder begins:
Now the cabinets are not broken;
Instead of attacking the cabinets:
if Investigation is the Current Scene
begin;
Say "No need to beat a dead horse.";