-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStoryText.java
More file actions
665 lines (612 loc) · 50.6 KB
/
StoryText.java
File metadata and controls
665 lines (612 loc) · 50.6 KB
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
import java.util.Scanner;
class StoryText {
public static void sleep(int time) {
try {
Thread.sleep(time);
}
catch (Exception e) {
// catching the exception
System.out.println(e);
// code found on (its a modified version) - https://www.geeksforgeeks.org/java/thread-sleep-method-in-java-with-examples/
}
}
/**
* @param decisionText - choices that are displayed; | is set as the
* delimiter. DO NOT INCLUDE SPACES
* @return - the path the player goes and text that is returned
*/
private static int makeDecision(String decisionText) {
String text = decisionText;
//Easier w/ ArrayList
int maxAction = 1;
String decisions = "";
while (text.indexOf("|") != -1) {
String choice = text.substring(0,text.indexOf("|"));
text = text.substring(text.indexOf("|")+1);
decisions += "" + maxAction + ". " + choice + "\n";
maxAction++;
}
//Adds decision to string
decisions += "" + maxAction + ". " + text + "\n";
Scanner input = new Scanner(System.in);
//Loops until the player makes a valid decision
while (true) {
System.out.print(decisions);
int action = -1; //Not a decision
try {
action = input.nextInt();
}
catch (Exception error) {
System.out.println("Please enter a number listed in the choices");
}
if (action >= 1 && action <= maxAction) {
return action;
}
System.out.println("\nInvalid action");
}
}
/*
This function doesn't return anything; only prints out the intro which is the same
*/
public static void introduction() {
System.out.println("\033[1m" + "Introduction" + "\033[0m");
System.out.println("");
System.out.println("All it took was 120 seconds.");
System.out.println("Finley's plan was envisioned in his head.");
System.out.println("He was to grab the cure, it was right before him:");
System.out.println("just 10 steps away and 120 seconds of time to work with.");
System.out.println("");
System.out.println("Finley's eye twitched yet again. Stress.");
System.out.println("He had 15 seconds to walk to the cure, with its weird magenta shade — ");
System.out.println("Finley would call it telemagenta, as it was the 'correct' name to call it.");
System.out.println("65 seconds to defuse any problems, plus deal with security.");
System.out.println("30 seconds to deal with extra annoyances, 10 seconds to leave.");
System.out.println("Only one step would start the sequence, and the timer in his head would begin.");
System.out.println("");
System.out.println("'Come on, Finley. Don't give up now.'' He said to himself.");
System.out.println("Images flashed in his mind, the infection in his world that somehow altered people's bodies to turn them into these distorted, hostile beings.");
System.out.println("Some flashbacks of his brother, Felix, also appeared.");
System.out.println("Felix unfortunately fell victim to this vile disease, covered in some weird black substance along with tiny holes everywhere, creating a disturbing sight to see.");
System.out.println("Finley's body rushed with a chill, out of fear, and nervousness.");
System.out.println("But he knew his family, the entire world, including the scared few survivors, depended on his actions.");
System.out.println("");
System.out.println("'Showtime.'");
System.out.println("");
System.out.println("\033[1m" + "IMPORTANT:" + "\033[0m");
System.out.println("When choosing between options, " + "\033[1m" + "ONLY" + "\033[0m" + " choose by typing 1, 2 and 3 if there is a third option."); // unless im wrong..?? someone lmk because i dont :broken_heart:
System.out.println("");
// i just felt that this needed to be stated because some people are lowkey stupid
}
/*
@return - gives the path index specifed from flowchart
*/
public static int segment1() {
System.out.println("DECISION POINT 1: ");
//Uses the decision function to find the player's decision
int decision = makeDecision("Slowly Walk|Run Forward");
//Changes text output and path depending on numerical choice from player
switch (decision) {
case 1:
System.out.println("He took a step forward.");
System.out.println("Step.");
System.out.println("Step.");
System.out.println("");
System.out.println("He takes in his surroundings while walking.");
System.out.println("There seemed to be no cameras around, or just perfectly hidden out of sight based on his vision perception from where he was standing.");
System.out.println("No alarms were set off either, but there was a singular pedestal in the middle, where he presumed the cure was.");
System.out.println("Nothing was there either. But alas, he decided to move forward.");
System.out.println("Step.");
System.out.println("");
System.out.println("\033[3m'It can't be this easy. Something has to-'\033[0m");
System.out.println("");
System.out.println("He took another step in. Alarms started blaring, a hidden intercom started crackling to life and a voice began speaking incomprehensible words, and Finley's body stiffened a quick second.");
System.out.println("And on top of that, Finley could hear footsteps running towards the door.");
System.out.println("");
break;
case 2:
System.out.println("He took a deep breath, and burst through the doors, taking a few steps in before turning back and slamming the door shut.");
System.out.println("He turned back and saw only a pedestal in the middle, which wasn't what he was expecting, but nevertheless, he knew the cure had to be in there.");
System.out.println("");
System.out.println("He ran back to the pedestal, but then, alarms started screeching at really high pitches.");
System.out.println("A screaming intercom cackled to life, with voices speaking incomprehensible words.");
System.out.println("Finley's froze, thinking about what to do with the time frame he had.");
System.out.println("");
break;
}
//Usually not used for other segment functions; however, since decision does not influence route
System.out.println("Text Pre-2");
//returns 2, since decision doesn't change output
return 2;
}
public static int segment2() {
System.out.println("DECISION POINT 2: ");
int decision = makeDecision("Rush|Hide behind pedestal|Hide behind door");
int path = 0;
switch (decision) {
case 1:
System.out.println("A thought flashed into his mind.");
System.out.println("It wasn't the best plan ever, judging by the fact that he had about 10 seconds to do something before guards burst inside the room, but he decided to take his chances.");
System.out.println("He ran to the other side of the pedestal, and started to try and pry it open with his fingers.");
System.out.println("But he was sweating, and his fingers kept slipping off of the gap between the box the cure was in, and the sleek, shining marble that the pedestal was made of.");
System.out.println("");
System.out.println("'Come on, come on… this thing HAS to get open someway!' He whispered to himself.");
System.out.println("But the footsteps got louder. Closer.");
System.out.println("His eyes looked up at the door, his soft, ginger colored hair covered a small portion of his vision.");
System.out.println("He realized what was about to happen, and ducked behind the pedestal right as the guards broke through the door. But he was off centered.");
System.out.println("Bullets immediately fired, and to his surprise, one grazed right next to his shoulder, making him yelp and knocking him back.");
System.out.println("It wasn't that far, but just enough for the guards to have vision of him, and he was shot.");
System.out.println("His hands fumbled around in his pockets, but it was no use.");
System.out.println("");
System.out.println("Because the second shot that was fired hit him right in the head. ");
path = ending(2);
break;
case 2:
System.out.println("Finley, without thinking, ducked behind the pedestal.");
System.out.println(" And a few seconds after, guards screaming orders burst into the room, shots being fired right past him.");
System.out.println("");
System.out.println("Luckily enough, it was just wide enough for him to stay behind without being in line of sight of the guards.");
System.out.println("He had to think fast on what to do. ");
path = 3;
break;
case 3:
System.out.println("He stared back at the doors. A thought came into mind. Was it worth it?");
System.out.println("Maybe, but he didn't care.");
System.out.println("");
System.out.println("He ran to the door, trying to find a way to force the door shut.");
System.out.println("");
System.out.println("'There has to be a way to lock this…'");
System.out.println("");
System.out.println("He saw the lock system a second too late.");
System.out.println("Finley was then met by a swing of a door open.");
System.out.println("He was thrown off to the side, and guards were pouring into the room, but since he was hidden behind the door, they didn't see him. ");
System.out.println("They were shouting orders to search the area, and Finley, panicking, whispered into his watch.");
System.out.println("He failed, and didn't know when he could recreate this again.");
System.out.println("He fiddled with the watch on his wrist, before it flashed a soft orange.");
System.out.println("'Take me back, NOW.' He whispered, and right as the guards noticed him, he blinked away and left with nothing. ");
path = ending(2);
break;
}
return path;
}
public static int segment3() {
System.out.println("DECISION POINT 3:");
int decision = makeDecision("Use Grenade|Use Pistol|Continue Hiding");
int path = 4;
switch (decision) {
case 1:
System.out.println("He reached into his pockets, trying to find something.");
System.out.println("He then quickly pulled out a golden egg grenade, which was an inside joke between him and his friend.");
System.out.println("He circled his hands around it, and then pulled down a lever from the side with his thumb, then threw it above his head.");
System.out.println("Shots were still being fired, some shooting past his body.");
System.out.println("Some got so close to his head that he could hear them fly past, but he knew that he had to keep composure, otherwise…");
System.out.println("");
System.out.println("All of a sudden, the bomb exploded.");
System.out.println("A few bodies flew nearby and were slammed against the walls around him.");
System.out.println("The thudding sounds of them hitting the ground made Finley have chills, but he ignored it, as his eyes were drawn to the floor.");
System.out.println("The once clean, metal floor was now like the bottom of a shallow pool.");
System.out.println("Except that pool was filled with blood and body parts, not water. He watched the blood seep into the metal, flowing ever so slowly to Finley.");
System.out.println("");
System.out.println("\033[3m'Gross. Can't let that touch my ever so special shoes.'\033[0m");
System.out.println("There was sarcasm in his voice, because they really aren't that special.");
System.out.println("They were gifted from his dad, who he doesn't like to talk about anymore.");
System.out.println("If he were to get any pair dirty, he would choose these.");
System.out.println("");
System.out.println("Finley sat there, expecting more to come.");
System.out.println("But there was nothing, just the same alarms and static voices screaming.");
System.out.println("He glanced back, and not as he had expected, he saw an empty hallway, except for another body that was blown that direction.");
break;
case 2:
System.out.println("\033[3m'Okay. I can do this.'\033[0m He whispered to himself. He saw the shadows of the guards getting closer.\033[0m");
System.out.println("He reached to his belt holster, gripping the handle of his hyperlasered-pistol, and quickly spun around, pulling out the pistol and shooting one of the guards upper chests.");
System.out.println("They immediately dropped dead, and the 4 other guards almost immediately started shooting at Finley.");
System.out.println("He swiftly moved over to a pillar in the back of the room, so he could have a safe spot.");
System.out.println("");
System.out.println("\033[3m'This would've been a better spot than behind the stupid thing.'\033[0m He thought to himself.");
System.out.println("He positioned himself low, going back to the holster to grab a scope.");
System.out.println("He was never the best at aiming with smaller guns. He preferred snipers.He put the scope on the top of the pistol, securing it tightly before making himself visible, pointing his gun out and shooting 2 of the guards, the other 2 shooting at him right after.");
System.out.println("He put the scope on the top of the pistol, securing it tightly before making himself visible, pointing his gun out and shooting 2 of the guards, the other 2 shooting at him right after.");
System.out.println("But then, a pain shot through his left knee.");
System.out.println("He screeched, and hid behind the pillar again and looked at his leg. It was shot.");
System.out.println("He started shaking, and gritted his teeth, wincing at the pain as he tried putting his hand around the bullet mark.");
System.out.println("Blood was slowly pouring out, but he had a bigger matter to attend to.");
System.out.println("He didn't want to make himself vulnerable like this.");
System.out.println("");
System.out.println("He sighed, and transitioned the gun to be held in his right hand only.");
System.out.println("He stood up, and pointed his arm around the pillar while peering over.");
System.out.println("He shot at one of the guards, the bullet hitting right in the head before the other guard fired again, narrowly missing.");
System.out.println("Finley fired back, shooting one of the guards arms, and then shot at their heart.");
System.out.println("They were all dead, pools of blood surrounded their bodies.");
System.out.println("");
System.out.println("Finley limped out from behind the pillar, and looked where the pedestal was supposed to be, but he realized then what happened, as he wasn't paying attention to it.");
System.out.println("The pedestal was somehow shattered into pieces.");
System.out.println("Alongside that, the cure was somehow spilled all over the floor, presumably from the amount of times bullets were fired and the grenade from before,");
System.out.println("it must've created so much pressure that caused the marble to break, then the glass that the cure was sitting inside.");
System.out.println("'Are you kidding me??'' He grunted.");
System.out.println("He was originally going to bring a flask, but decided not to, and now when he needed it, he had none.");
System.out.println("He looked back down at his leg again, blood trickling down his pants to his shoes.");
path = 7;
break;
case 3:
System.out.println("His gut instincts told him to stay in place, so he did.");
System.out.println("He was hoping to deceive the guards to make it seem like a false alarm.");
System.out.println("He thought it was working, but then he felt something grab his hair and pull him out of his hiding spot.");
System.out.println("'You're coming with us.' said an awfully stern and deep voice.");
System.out.println("Finley was now being dragged out the room, guards with guns pointing at him on both sides.");
System.out.println("He cried in pain, trying to get the person's grip on his hair loose, but it was no use.");
System.out.println("He passed by multiple rooms, still being dragged, though he came up with something to get out.");
System.out.println("He pretended to loosen the grip again, but instead, he used his left hand, where his watch was.");
System.out.println("He whispered the words so softly nobody but him could hear it.");
System.out.println("");
System.out.println("One of the guards, a female, noticed something off. Finley's watch was getting brighter.");
System.out.println("'He's doing something!'' She shouted, reloading her gun, but it was too late for them to do anything about it.");
System.out.println("");
System.out.println("Finley smirked, before blinking away out of their vision, not back to safety, but back to the cure room.");
System.out.println("He now locks the door like he would have a few minutes ago, and contemplates on what to do next.");
break;
}
return path;
}
public static int segment4() {
System.out.println("DECISION POINT 4: ");
int decision = makeDecision("Extractor|Hacking Device");
int path = 0;
switch (decision) {
case 1:
System.out.println("Finley grabbed another one of his gadgets from a different pocket.");
System.out.println("He didn't have a name for this one, but knew what it did.");
System.out.println("'Okay, early on time. Great. But this is my first time using this. Please work.' Finley whispered to himself before pressing the button in the middle of the device.");
System.out.println("It beeped, then turned green. It flashed brighter shades and hues of green while working, but it was slower than expected.");
System.out.println("");
System.out.println("40 seconds passed.");
System.out.println("");
System.out.println("'Still 15 seconds ahead. This should've taken 10 seconds.' Finley grunted out, tilting his head down in worry");
System.out.println("But, it was working.");
System.out.println("The gadget was reverting the mechanic's commands inside the pedestal.");
System.out.println("The cure was slowly rising, but it was protected from inside its box.");
System.out.println("");
System.out.println("40 seconds left.");
System.out.println("");
System.out.println("It was nearly at the top. But the box still had to come off. Finley tensed up.");
System.out.println("");
System.out.println("30 seconds.");
System.out.println("");
System.out.println("20 seconds.");
System.out.println("");
System.out.println("15 seconds. ");
System.out.println("");
System.out.println("The box opened, but more footsteps were running forward. There was barely time left. ");
break;
case 2:
System.out.println("The time was still solid. Around 75 seconds were left.");
System.out.println("He wanted to try and get out as soon as possible.");
System.out.println("He reached into a pocket and pulled out what seemed to be a makeshift phone, and a small, metal rod that looked like a dart from a nerf gun but bigger.");
System.out.println("He stuck the rod directly on top of the pedestal, and he tapped the screen on the device he was holding.");
System.out.println("The metal rod opened up silently and slowly, displaying a small mechanical haven.");
System.out.println("He pressed a small greenish button on the top, and typed something on the screen of his 'phone.'");
System.out.println("The screen was printing out text of what the rod was doing.");
System.out.println("");
boolean completedMinigame = HackingMinigame.start();
if (!completedMinigame)
{
System.out.println("The screen turned red. He failed, but he didn't care. There was still time left, and he needed to make the most of it. And since there was no extra pressure on him, he could try doing something else to get the cure free from its enclosurement. The pedestal had weak spots from his encounter with the guards shooting at random, so he figured he could do something with that. But he didn't know what.");
System.out.println("\"Maybe I could like… explode it again..? Or something like that..?\"");
System.out.println("\"I sound schizophrenic why am I talking to myself.\"");
System.out.println("He brushed aside the original thought. That was too risky, and it could blow up the entire build, and not just the pedestal itself.");
System.out.println(".");
System.out.println("..");
System.out.println("...");
System.out.println("\"Screw this,\"");
System.out.println("Maybe that wasn't the worst idea. It was the only one he had, so he decided to just give it a shot.");
System.out.println("\"I'll try it.\"");
System.out.println("He walked back into the hallway, positioned himself, grabbed another egg bomb, and aimed at the bottom of the pedestal. If he could manage to land the bomb right in front of it, there was a bigger chance that the cure would come free unscathed. His finger was on the lever, and his eyebrows lowered. ");
ending(10);
return 0;
}
System.out.println("'Creating hardened virtual machine'");
System.out.println("'Spinning out multi-hop VPN to breach network'");
//Find Server IP
// Connection Chance / Success Chance, Detection Rate
System.out.println("'Using servers from Evalia and Alxaco'");
//UPLINK VERIFY
System.out.println("'Exiting through proxy in Wehntyr'");
System.out.println("'Blending with user traffic'");
System.out.println("'Encrypting DNS queries with DoT via Cloudflare. Mimicking HTTPS traffic'");
System.out.println("'Hiding probes in firewalls'");
//Timing T0 to T5
System.out.println("'Scanning for vulnerabilities with NMAP and T-n TIMING");
System.out.println("'Finding entry points in the network'");
System.out.println("'Exploiting Apache flaws with Metasplot reverse TCP shell'");
System.out.println("'Access to backend DMZ'");
System.out.println("'Internal System Control accessed'");
System.out.println("'Retrieving passcode'");
System.out.println("'Extracting data in POST requests'");
System.out.println("'Sending to burner phone'");
System.out.println("");
System.out.println("There was 55 seconds left.");
System.out.println("");
System.out.println("The pedestal slowly opened, revealing the glass box the cure was in.");
System.out.println("Soft, white smoke emitted from inside, creating a weirdly satisfying, yet intimidating ambiance in the room. ");
System.out.println("Finley slowly approached the cure, expecting some sort of defense system.");
System.out.println("But there was nothing. ");
System.out.println("The glass box opened itself, letting the cure be free to take.");
System.out.println("Finley looked around cautiously, still expecting something, SOMETHING, to happen, but nothing came.");
System.out.println("Finley wrapped his fingers around the flask, and took it out.");
System.out.println("'Seriously..? That was it?'");
System.out.println("He looked up at the door. The body in the hallway from before was still there, laying still, and he looked down at the cure again, before thinking of an idea.");
System.out.println("He took out a small piece of paper from a different pocket, and a pencil, and wrote something down, using the pedestal as a support.");
System.out.println("He tapped his watch, and watched it flash white. And laughed a little.'Take me back.'");
System.out.println("He blinked away.");
System.out.println("");
System.out.println("Later on, when someone went to investigate what happened while they were in a different sector, all they saw was a written note that read:");
System.out.println("'come on guys, this is a government official building. Up ur security systems LMAOOOO - FC >:P'");
System.out.println("");
path = ending(3);
break;
}
return 5;
}
public static int segment5() {
System.out.println("DECISION POINT 5: ");
int decision = makeDecision("Abandon Mission|Rush|Caution");
int path = 0;
switch (decision) {
case 1:
System.out.print("It took too long. Footsteps got louder. Finley, out of instinct, realized that it might not be enough time. 8 seconds were still left. But it might not have been enough time as he planned.");
System.out.println("8 seconds were still left. But it might not have been enough time as he planned.");
System.out.println("He quickly reached to his watch, whispering something before leaning down onto the pedestal. ");
System.out.println("And right before he teleported away, the cure opened right in front of him. ");
System.out.println("He blinked back to his home base.");
System.out.println("'Great… the thing had to open up RIGHT as I left. This is such a joke.'");
break;
case 2:
System.out.println("The footsteps got louder. But, the pedestal opened up, and a glass box rose up with the cure inside of it. Finley wanted out, he barely made it the first time, and he knew that he couldn't risk it happening again for the second. ");
System.out.println("");
System.out.println("He took a deep breath.");
System.out.println("");
System.out.println("He punched the glass box, shattering instantly. Glass shards exploded everywhere on the ground, causing weird light reflections to be shined into his eyes. But all of that didn't matter. He needed to grab the cure. ");
System.out.println("Blood dripped from his knuckles onto the box. They could trace back his DNA. But he didn't care. He grabbed the cure, and ran behind a pillar that was in the back corner of the room.");
System.out.println("By the time reinforcements came into the room, all that was left was a pile of glass, and a bloody pedestal.");
System.out.println("No cure was found. Finley was able to get away with it.");
path = ending(11);
break;
case 3:
System.out.println("Finley took the risk and waited.");
System.out.println("");
System.out.println("Tick.");
System.out.println("");
System.out.println("Tick.");
System.out.println("");
System.out.println("Smoke fused out from beneath the box, and it slowly opened.");
System.out.println("Finley immediately grabbed the cure and slipped himself behind the pedestal. ");
System.out.println("");
System.out.println("5 seconds.");
System.out.println("");
System.out.println("Loud, piercing gunshots echoed throughout the room. But it took only a few words to be able to escape freely.");
System.out.println("He tapped the watch on his wrist.");
System.out.println("");
System.out.println("He had to be fast.");
System.out.println("");
System.out.println("\"Take me back. It's done.\"");
System.out.println("Right before he was about to get circled and possibly shot, he blinked away. ");
System.out.println("His hard work paid off for this moment.");
path = ending(4);
break;
}
return 0;
}
public static int segment6() {
int decision = makeDecision("Go Back|Stay without cure");
int path = 0;
switch (decision) {
case 1:
System.out.println("\"I have to go back. I'm already this far in, I can't back down now.\" He said to himself, his eyebrows furrowing, tapping his watch and commanding it to take him back to where he was before. He then reached for his belt as he was teleporting, his hands on the handle of his pistol, as if expecting something, or someone, to be there.");
System.out.println("A few moments later, he reappeared back, in front of the cure. The doors made a loud sound as they closed, making Finley flinch from the sudden noise. It only signified that people were here, and that they must've reverted the system controls so the cure sinks back down to the pedestal. But it hadn't yet.");
System.out.println("He re-opened the box, taking the cure out of the box before alarms started blaring again, but this time he was ready.");
System.out.println("\"Take me back for real this time.\"");
System.out.println("The intercom screamed, shouting random orders.");
System.out.println("");
System.out.println("He swished the liquid around in its bottle lightly. And left. He made it.");
path = ending(6);
break;
case 2:
System.out.println("\"Ugh, the guards are probably going to be there if I go back.\" He said, bringing his hands to his face and grunting.");
System.out.println("\"They are probably going to have higher security tomorrow. I guess I have to just trust myself.\"");
System.out.println("He sat down on a chair, leaning back, knowing that he would have to repeat the same process again a different day.");
System.out.println("");
System.out.println("He could do it.");
System.out.println("");
System.out.println("He just needed to be faster.");
path = ending(5);
break;
}
return path;
}
public static int segment7() {
int decision = makeDecision("Try to solo|Call for backup");
int path = 0;
switch (decision) {
case 1:
System.out.println("\"This is amazing.\" Finley said, limping now, stepping completely out from behind the pillar. The cure now completely spread across the floor, and with nothing to pick it up with and contain, Finley was back at square one. ");
System.out.println("\"How am I supposed to do this…\" His watch was slightly overheated from the battle, and he didn't want to risk it getting worse, so he made his way over to the door, and opened it just wide enough to look inside. It was an empty hallway. Nothing to help him with, so he shut the door quietly. Time was ticking, and he thought he heard something outside, but he knew nothing was there.");
System.out.println("An idea formed in his mind. Some of the shards on the ground were curved, meaning he could make a makeshift bowl to put the cure in. He slowly walked over to the exploded pedestal, grabbing one specific big piece that had a very slight curve to it after closely examining a lot of the pieces, but then he realized that it wouldn't work. His watch could possibly go for one more teleport, but then it would overheat and, like in previous cases, he couldn't use it for days, and by hen the government would for sure set up the system again. So he came to the decision to leave. Not for good, but he would come back at some other point in time.");
path = ending(7);
break;
case 2:
System.out.println("\"Whatever…\" Finley sighed. He tapped the watch on his right wrist. He decided to get some help, not only with his knee, but getting the cure off the ground. ");
System.out.println("");
System.out.println("\"Call emo boy.\"");
System.out.println("");
System.out.println("A soft buzzing sound echoed across the room as the watch was ringing. He turned the volume down. ");
System.out.println("The ringing stopped, and ruffling noises could be heard on the other end.");
System.out.println("");
System.out.println("\"Ughh.. Fin, what happened.. I was napping..\" A huskish voice said.");
System.out.println("");
System.out.println("\"Great question buddy! I got shot in the leg!\" Finley responded.");
System.out.println("");
System.out.println("\"..You're joking.\"");
System.out.println("");
System.out.println("\"Why would I be joking?\"");
System.out.println("");
System.out.println("An awkward silence with more ruffling noises occurred.");
System.out.println("");
System.out.println("\"I'll be there in a few seconds, idiot.\"");
System.out.println("");
System.out.println("A minute later, Finley's best friend, Raymonde, appeared. He came with a compression bandage in one hand, and Resulé, a custom-made spear made of pure metal. His black and white hair was messy, his eyes half-open, and his body was still waking up. Normal for someone like him.");
System.out.println("");
System.out.println("\"Seriously. How do you end up like this.\"");
System.out.println("");
System.out.println("\"Weelll… I might've set off an annoyingly loud alarm and had to fight off a horde of guards…\"");
System.out.println("Raymonde just sighed, his eyes scanning around the room and eyeing the bodies.");
System.out.println("");
System.out.println("\"You need to be less reckless sometimes, Cupine.\"");
System.out.println("");
System.out.println("\"There's a bigger problem in the room, Raye. Look.\" Finley pointed to the cure spilled all over the floor, motionless but still there. Raymonde leaned his weapon against the wall, and got down on one knee beside Finley, unravelling the bandage and wrapping it around the wound.");
System.out.println("");
System.out.println("\"Really now. What are we going to do about it.\" Raymonde mumbled, standing up again and grabbed the Resulé.");
System.out.println("");
System.out.println("\"There's gotta be some form of bottle somewhere else in this place. I think a lab is the room next door.\" Finley said, walking around to get used to his weird limp.");
System.out.println("");
System.out.println("Raymonde sighed again, twirling the Resulé around like a baton, even if it weighed hundreds of pounds. ");
System.out.println("");
System.out.println("\"Then let's go. Not much time left before more guys come over here.\"");
System.out.println("");
System.out.println("Some time passed, and they finally went to a room after a winding hallway, and as Finley suspected, it was a laboratory. It was empty.");
System.out.println("");
System.out.println("\"Do we split? This place seems to be bigger than I thought it would.\"");
path = 8;
break;
}
//Either path 8 or ending
return path;
}
public static int segment8() {
int decision = makeDecision("Don't Split|Split");
int path = 0;
switch (decision) {
case 1:
System.out.println("\"Probably not, only because I don't think I can completely walk on my own yet.\"");
System.out.println("");
System.out.println("\"Okay then. I would've done the same thing.\"");
System.out.println("");
System.out.println("Finley slung himself over Raymonde's shoulder, and they slowly walked through the lab, passing by unfinished experiments on cells and small creatures. Raymonde hated being in laboratories, as he was used as an experiment himself by this very building. Which is also the reason why he never shows much emotion or interest in Finley's adventures. And also the reason why he's able to carry a 500 pound object with ease. Nevertheless, they still ventured through the lab quietly, talking rarely in whispers as they tried to find some sort of vial.");
System.out.println("\"Isn't it weird that it's empty here? Are they relocating?\"");
System.out.println("");
System.out.println("\"That isn't of importance right now. What matters most is you getting out of here with no other fractures.\"");
System.out.println("");
System.out.println("\"Jeez man, just wanted to talk, I'll be fine!\"");
System.out.println("");
System.out.println("\"Maybe if we weren't here-\"");
System.out.println("");
System.out.println("He stopped talking for a second, glancing around as if he saw something move. It was eerily silent. ");
System.out.println("\"Be quiet.\" Raymonde murmured, not letting his guard down as they slowly maneuvered through the place, seeing no signs of vials or flasks anywhere.");
System.out.println("");
System.out.println("Minutes passed, and they were almost on the complete opposite side of where they originally entered. The place was darker on this side, and they were only using the light from the tunnel on the other side. ");
System.out.println("");
System.out.println("\"Hey, right there,\" Finley said, pointing to a small sink near a wall, \"I think I see something.\"");
System.out.println("");
System.out.println("\"Hm. Okay.\"");
System.out.println("They made their way over to the direction Finley pointed out, and Finley looked around the area while Raymonde kept watching for anything off. ");
System.out.println("\"It's so dark..\" Finley said, having to use both his sense of sight and touch to his favor. ");
System.out.println("");
System.out.println("\"Did you find anything?\"");
System.out.println("\"I might-\" Finley was cut off by a loud glass breaking on the ground. ");
System.out.println("");
System.out.println("\"…\" ");
System.out.println("\"Sorry… I swear I didn't mean to do that, but hey!; on the bright side, even if it's dark, I did find a small vial with a cap!\"");
System.out.println("");
System.out.println("\"Okay-\"");
System.out.println("");
System.out.println("Guards swarmed into the room, guns raised as if they knew that they were here, and Raymonde almost immediately got on the ground without being noticed, dragging Finley down with him.");
System.out.println("");
System.out.println("\"Stay down.\" Raymonde whispered deeply, taking the Resulé leaning from the counter they were near. He stood up.");
System.out.println("");
System.out.println("\"This will be easy.\"");
System.out.println("");
System.out.println(" Raymonde slid across the counter, staying balanced and focused, and threw the Resulé. It was angled perfectly, taking out 4 guards in the room before recalling itself back into Raymonde's hands. He deflected bullets that were being shot at him with ease, as if he did this before.");
System.out.println("");
System.out.println("\"Fin, grab that vial.\" He said, before standing up completely and started running away from him as bullets narrowly avoided him. Finley did as told, reaching up for the tube he found, and quickly getting back on the ground. He heard more guards getting knocked down by Raymonde.");
System.out.println("");
System.out.println("Finley trusted him enough, and crawled over by the entrance as Raymonde killed off the last guard.");
System.out.println("\"This could've been avoided.\"");
System.out.println("");
System.out.println("\"What can I say? I would've probably died if it wasn't for you.\" Finley laughed.");
System.out.println("");
System.out.println("\"You're skilled enough to do what I just did. But we need to get out of here. ASAP.\" Raymonde exclaimed while walking over, picking up Finley. They started making their way back to the cure.");
System.out.println("\"At least we got what we came for!\"");
System.out.println("");
System.out.println("\"YOU got what YOU came for.\"");
System.out.println("They made it to the room with the cure, and they were both on the ground, scooping up the liquid and pouring it into the vial. They used the gloves of the dead guards to protect themselves.");
System.out.println("Finley stopped randomly, turned around and shot at something. There was a guard that somehow survived and was limping their way towards them. They collapsed dead completely.");
System.out.println("");
System.out.println("\"Okay, that's the most we can get.\" Raymonde grabbed Finley, and tapped his (Finley's) watch.");
System.out.println("\"It's overheated.\"");
System.out.println("Raymonde was about to yell at Finley, but just ignored him, and tapped his own watch, and it flashed a medium gray.");
System.out.println("");
System.out.println("\"Take us back.\"");
System.out.println("");
System.out.println("They blinked away.");
path = ending(8);
break;
case 2:
System.out.println("\"I should probably try to get used to this leg.\"");
System.out.println("");
System.out.println("\"Hm, whatever you say. I'll go right and you can go left.\"");
System.out.println("");
System.out.println("They went off in their directions, looking around for anything that could be used, Raymonde moving at the same speed as Finley only for extra caution. ");
System.out.println("Raymonde hated being in laboratories, as he was used as an experiment himself by this very building. Which is also the reason why he never shows much emotion or interest in Finley's adventures. And also the reason why he's able to carry a 500 pound object with ease. Nevertheless, they still ventured through the lab quietly, having started to feel around as it got darker the deeper they went.");
System.out.println("\"You good over there, Raye?\" Finley said, holding onto a table for support.");
System.out.println("");
System.out.println("\"Yes.\"");
System.out.println("");
System.out.println("Finley scouted around the area, and his eyes fixed on something inside a sink. ");
System.out.println("\"I think I might've found something we could use!\" He exclaimed excitedly as he took out a small tube with a cap on it. But what he failed to recognize was a smaller glass beaker on the edge, and when he spun around to show Raymonde, it knocked over and shattered on the ground.");
System.out.println("");
System.out.println("\"You have to be kidding me, Finley.\"");
System.out.println("");
System.out.println("\"Raye, DOOR.\" Finley shouted in response, instantly taking out his pistol again, and sealing the tube inside a belt pocket. ");
System.out.println("Raymonde grabbed his Resulé and backed away from the door. Guards flooded into the room shortly after, moving robotically with their guns pointed up. He threw it at them, impaling them through their bodies and coming right back to Raymonde, bloody. Finley shot a couple of the guards, keeping his distance and his line of sight at a minimum. Raymonde had to fight melee, which wasn't a huge problem. But the bigger problem was that the last guard had him held at gunpoint from behind. But he failed to notice Finley hiding behind a counter deep in the dark.");
System.out.println("");
System.out.println("\"Oh, you're that freak from Sector 5-Z.\" The guard said hoarsely, thinking she had an advantage.");
System.out.println("");
System.out.println("\"And you're the one that shocked me over 20 times for no reason.\" Raymonde replied, as if he recognized the old woman's voice. Finley did too, and his grip on his gun tightened.");
System.out.println("");
System.out.println("\"There was a reason. Your own parents didn't want you, and sent you there.\"");
System.out.println("");
System.out.println("\"You tricked them into thinking you were making me better.\"");
System.out.println("");
System.out.println("\"And who said I wasn't? I mean, look at you now, all tough and grown up. What a pathetic thing to call the same race as me.\"");
System.out.println("");
System.out.println("Finley couldn't see anything. He was inching closer to the light, and kneeling on the ground to be out of sight from the lady. He stopped at a point where he could clearly see where he was shooting, and raised his gun, looking into the scope.");
System.out.println("\"It sucks it has to end like this boy,\" she laughed, pressing her gun against Raymonde's head, and he flinched, \"And what better way to go than by-\" She was cut off, by a loud bang and a gasp, her body falling on the floor with a loud thud. Blood was leaking from her forehead.");
System.out.println("");
System.out.println("\"Let's just get out of here.\" Finley said, standing up from his spot, his forehead dripping with sweat, and his body was tense.");
System.out.println("");
System.out.println("\"I agree.\" Raymonde responded, his body tense after the interaction he dreaded happening.");
System.out.println("They got back to the room with the cure, not saying a word to each other. It was awkwardly quiet as they were scooping the cure into the tube.");
System.out.println("\"You okay..?\" Finley asked, closing the cap of the tube and looking up at Raymonde—His face was covered in blood and sweat, his hair covering some of his eyes.");
System.out.println("");
System.out.println("\"We just need to leave. I really don't want to be here.\"");
System.out.println("Finley went over and hugged Raymonde for support, even if it wasn't much. He then tapped Raymonde's watch.");
System.out.println("");
System.out.println("\"Why not yours?\" Raymonde whispered.");
System.out.println("");
System.out.println("\"Overheated,\" Finley whispered back, \"Take us back. Fast.\" ");
System.out.println("");
System.out.println("\"How do you manage to overheat something you said yourself would NOT overheat..\"");
System.out.println("");
System.out.println("\"Haha… we don't talk about that.\"");
System.out.println("");
System.out.println("They blinked away with the cure, but also left with a memory they definitely wouldn't forget, no matter how hard they tried.");
path = ending(9);
break;
}
return path;
}
/*
@param endingNum - the index for the ending, which is provided by the flowchart
*/
public static int ending(int endingNum) {
System.out.println("Ending " + endingNum);
return 0;
}
}