Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Final {
- public static void main(String[] args) {
- boolean RMC = false;
- boolean RMC2 = false;
- boolean RMC3 = false;
- boolean win = false;
- System.out.println("Enter You Name");
- Scanner input = new Scanner(System.in);
- String name = input.nextLine();
- System.out.println ("Hello " + name + ", Welcome to my testing lab. Good luck");
- System.out.println("You wake up inside a testing lab and noice 3 different doors");
- int RM = 0;
- if (RM == 0)
- {
- System.out.println("Door 1, Has the face of a serpent on it with a handle to oppen it, Door 2 has no handle but a picture of a dice on it.");
- System.out.println("Door 3 has a slot to place a crystal in it that looks to open it");
- System.out.println("What number door do you pick " + name);
- int RC1 = input.nextInt();
- while (RC1 !=1 || RC1 !=2 || RC1 !=3)
- {
- if(RC1 == 1)
- {
- System.out.println("You are now in the serpents chamber");
- RM = 1;
- break;
- }
- if(RC1 == 2)
- {
- System.out.println("The door has no way to open it, try a different one");
- RC1 = input.nextInt();
- }
- if(RC1 == 3)
- {
- System.out.println("The door requires a crystal to open, Try another one.");
- RC1 = input.nextInt();
- }
- else
- {
- System.out.println("That is not the number of a door try again");
- RC1 = input.nextInt();
- }
- }
- }
- if (RM == 1)
- {
- System.out.println("You have entered into the serpents chamber, He was created as a failed test of the lead scientest");
- System.out.println("He now guards the green gem stone with the promising of his freedom if he is successful");
- System.out.println("Your options are listed");
- System.out.println("1: Battle the serpent");
- System.out.println("2: Run away");
- System.out.println("What do you choose to do?(Select a number)");
- int SC1 = input.nextInt();
- while (SC1 !=1 || SC1 !=2 && RM == 1)
- {
- if (SC1 == 1 && RM == 1)
- {
- System.out.println("You enter the battle arena and are brought to see the serpent sleeping and onto many more decisions");
- System.out.println("1: Pick up the bloody sword and use it as your weapon");
- System.out.println("2: Grab a torch off the wall and use it as your weapon");
- int SC2 = input.nextInt();
- while(SC2 !=1 || SC2 !=2 && RMC == false)
- {
- if (SC2 == 1)
- {
- System.out.println("You run to pick up the sword and the sleeping serpent is instantly woken up and attacks");
- System.out.println("The serpent strikes and you try to raise the sword to stab it but it is stuck in the floor");
- System.out.println("It strikes and bites you in the back light begins to fade");
- System.out.println("Game Over");
- System.exit(0);
- break;
- }
- if (SC2 == 2 && RMC== false)
- {
- System.out.println("You run and grab the torch off the wall, as you do this a door opens and the serpent is awaking");
- System.out.println("The serpent darts to you noticing the torch your holding and quickly halts");
- System.out.println("It begins to slither backwards as you wave the flame.");
- System.out.println("You notice the snakes cowardness to the fire and you");
- System.out.println("1: Keep chasing it with the fire");
- System.out.println("2: Run for the open door");
- int SC3 = input.nextInt();
- while(SC3 !=1 || SC3 !=2)
- {
- if (SC3 == 1 && RMC == false)
- {
- System.out.println("You push foward with the torch and the serpent falls into a hole in the ground");
- System.out.println("There is now to a clear path to the crystal and you follow it");
- System.out.println("You walk foward and pick up the crystal, as you pick up you realize you are now back in the starting room");
- RMC = true;
- RM = 2;
- if (RM == 2)
- {
- System.out.println("A voice comes over the speaker system");
- System.out.println("You have completed my first challenge, you will not complete the next!");
- System.out.println("There is now only 2 options for doors, choose the correct one or faced instant death");
- System.out.println("1: A Door with a picture of a dice on it");
- System.out.println("2: A door with a faded picture of stones on it");
- int RC2 = input.nextInt();
- while (RC2 !=1 || RC2 !=2)
- {
- if (RC2 == 1)
- {
- System.out.println("You have failed to remember the past, the lights go out");
- System.out.println("Game Over");
- break;
- }
- if (RC2 == 2)
- {
- System.out.println("You walk over to the faded stones door and place the crystal in the opening");
- System.out.println("The door swings open and you wander inside, the door instantly lock behinds. You begin to hear a voice");
- System.out.println("You are now in the stone keepers lair, Watch your step");
- System.out.println("The answer to getting across is in the order of how you defeated the serpent");
- System.out.println("The voice fades away and all you can see is 3 stones, The first 2 and the final one, The final one is straight from your starting point, you can only use a stone once");
- System.out.println("1: Use the stone on the left");
- System.out.println("2: Use the stone on the right");
- int R1= input.nextInt();
- while(R1 !=1 || R1 !=2)
- {
- if (R1 == 1)
- {
- System.out.println("You are now on the left path, there are 2 more options for stones");
- System.out.println("1: Stay straight on the left path, 2: Go onto the second stone on the right path");
- int R2 = input.nextInt();
- while (R2 !=1 || R2 !=2)
- {
- if (R2 == 1)
- {
- System.out.println("You have forgotten the past, Light begins to fade");
- System.out.println("Game Over");
- System.exit(0);
- break;
- }
- if (R2 == 2)
- {
- System.out.println("You are still on the right path, there is one more choice before you reach the key");
- System.out.println("1: Stay on the right path, 2: Jump to the 3rd stone on the left path");
- int RS3 = input.nextInt();
- while(RS3 !=1 || RS3 !=2)
- {
- if(RS3 == 1)
- {
- System.out.println("You have cleared the stone path and have collected the key.");
- System.out.println("You are now teleported back to the starting room");
- System.out.println("You look around and the door with the dice on it is wide open, you wonder inside");
- System.out.println("You are now faced with a room of riddles that will lead to a combo");
- System.out.println("Answer correctly and move on to fight C-Beard the lead scientist of the lab");
- System.out.println("He holds the key to your escape you have the pieces you just need the door to get in");
- System.out.println("Remember your answers to the riddles and use them later for the code");
- System.out.println("Riddle #1 Whats Red, Hard, and really bad for your teeth");
- System.out.println("1: A Brick, 2: Ketchup 3: Cherry Snow Cone");
- System.out.println("Riddle #2 Three doors are displayed in a picture which leads to your freedom");
- System.out.println("1: A jungle filled with very poison plants that will kill you");
- System.out.println("2: A cerial killer from the 1800's 3: A Scorching sun that will burn you to death");
- System.out.println("Riddle #3 Whats Red ang Green and going 100 mph");
- System.out.println("1 A blue racecar, 2 a frog in a blender, 3 a green and red car in a 50mph zone");
- System.out.println("Guess your 3 digit number with no spaces, if it is correct you will pass if you fail you will be trapped for ever");
- int CG = input.nextInt();
- if(CG == 122)
- {
- int phealth = 10;
- int bhealth = 20;
- System.out.println("You have passed the test, you are worth to fight me, C-Beard, he boss of this lab");
- System.out.println("A door opens behind you you turn and walk down the long narrow hallway");
- System.out.println("As you walk down the hallway flames turn on every step you take");
- System.out.println("You hear a echo of a voice coming down the hallway to tell you to prepare for a battle");
- System.out.println("You enter the battle arena and C-Beard drops out of the cieling");
- System.out.println("He starts to run at you and you #1 Jump out of the way #2 Stand as you see his path is not straight");
- int BF1 = input.nextInt();
- while(BF1 !=1 || BF1 !=2)
- {
- if(BF1 == 1)
- {
- System.out.println("You dodge his strike and he runs into the wall and loses 5 health");
- bhealth -= 5;
- System.out.println("The boss now has " + bhealth + " health, you now have " + phealth + " health");
- System.out.println("You turn to see the bosses weakness out of the corner of your eye, shaving cream and a razor");
- System.out.println("You #1 Run for the shaving cream first and apply it #2 run for the razor and shave with out cream");
- int CB1A = input.nextInt();
- while(CB1A !=1 || CB1A !=2)
- {
- if (CB1A == 1)
- {
- System.out.println("You apply the shaving cream but as you are doing this C-Beard swipes at you");
- System.out.println("The shaving cream melts some of his beard off");
- System.out.println("You both lose 5 health");
- bhealth -= 5;
- phealth -= 5;
- System.out.println("The boss now has " + bhealth + " health, you now have " + phealth + " health");
- System.out.println("You have angered C-Beard and he begins to charge you again");
- System.out.println("You begin to run in a zig zag to distract him");
- System.out.println("You buy your self enough to time to notice 2 options");
- System.out.println("#1 Guide C-Beard over the edge of the arena, #2 Use the key you have found to attack C-Beard");
- int CB2 = input.nextInt();
- while (CB2 !=1 || CB2 !=2)
- {
- if(CB2 == 1)
- {
- System.out.println("You guide C-Beard to the edge of the map and he falls off");
- System.out.println("As he is falling off he grabs you and pulls you down");
- System.out.println("Light begins to fade");
- System.out.println("Game Over");
- System.exit(0);
- }
- if(CB2 == 2)
- {
- System.out.println("You strike C-Beard in the core which grows his beard");
- System.out.println("His entire beard shrivles up and you are victorious");
- System.out.println("Light begins to brighten as you awake in a hospital");
- System.out.println("You Win!");
- win = true;
- if(win = true)
- {
- System.out.println("You Win!");
- System.exit(0);
- }
- }
- }
- }
- if (CB1A == 2)
- {
- System.out.println("You grab the razor off the wall and shave part of his beard off");
- System.out.println("The razor inflicted a critical hit on him dealing max damage");
- System.out.println("C-Beard has lost all of his health and he forfits his key to get out");
- System.out.println("Light begins to get brighter as you wake up inside of a hospital");
- System.out.println("You Win!");
- win = true;
- if(win = true)
- {
- System.out.println("You Win!");
- System.exit(0);
- }
- }
- else
- {
- System.out.println("This is time sensative! Choose again");
- }
- }
- }
- if(BF1 == 2)
- {
- System.out.println("His path straightens out and he rams you into the wall, you lose 5 of your health");
- phealth -= 5;
- System.out.println("The boss now has " + bhealth + " health, you now have " + phealth + " health");
- System.out.println("You turn to see the bosses weakness out of the corner of your eye, shaving cream and a razor");
- System.out.println("You #1 Run for the shaving cream first and apply it #2 run for the razor and shave with out cream");
- int CB1B = input.nextInt();
- while(CB1B !=1 || CB1B !=2)
- {
- if (CB1B == 1)
- {
- System.out.println("You apply the shaving cream but as you are doing this C-Beard swipes at you");
- System.out.println("The shaving cream melts some of his beard off");
- System.out.println("You both lose 5 health");
- bhealth -= 5;
- phealth -= 5;
- System.out.println("The boss now has " + bhealth + " health, you now have " + phealth + " health");
- System.out.println("You have lost all of your health, light begins to fade");
- System.out.println("Game Over");
- System.exit(0);
- break;
- }
- if (CB1B == 2)
- {
- System.out.println("You grab the razor off the wall and shave part of his beard off");
- System.out.println("The razor inflicted a critical hit on him dealing max damage");
- System.out.println("C-Beard has lost all of his health and he forfits his key to get out");
- System.out.println("Light begins to get brighter as you wake up inside of a hospital");
- System.out.println("You Win!");
- win = true;
- if(win = true)
- {
- System.out.println("You Win!");
- System.exit(0);
- }
- }
- else
- {
- System.out.println("This is time sensative! Choose again");
- }
- }
- }
- else
- {
- System.out.println("This is time sensative, choose again!");
- }
- }
- }
- else
- {
- System.out.println("You have failed to show your mental strength, light begins to fade");
- System.out.println("Game Over");
- System.exit(0);
- break;
- }
- }
- if(RS3 == 2)
- {
- System.out.println("You have forgotten the past, light begins to fade");
- System.out.println("Game Over");
- System.exit(0);
- break;
- }
- else
- {
- System.out.println("That is not an avaliable choice, choose again");
- }
- }
- }
- else
- {
- System.out.println("That is not an option, Choose again");
- }
- }
- }
- if (R1 == 2)
- {
- System.out.println("You have forgotten the past, light begins to fade");
- System.out.println("Game Over");
- System.exit(0);
- break;
- }
- else
- {
- System.out.println("That is not an option, choose again");
- }
- }
- }
- }
- }
- if (SC3 == 2)
- {
- System.out.println("You start to run for the floor but quick trip on a crack on the floor");
- System.out.println("The serpent notices this and slithers twords you, he clamps his teeth and everything goes dark");
- System.out.println("Game Over");
- System.exit(0);
- break;
- }
- else
- {
- System.out.println("That's not an avaliable option, choose again");
- SC3 = input.nextInt();
- }
- }
- } }
- else
- {
- System.out.println("That is not an avalialbe option, choose again");
- SC2 = input.nextInt();
- }
- }
- }
- if (SC1 == 2)
- {
- System.out.println("You attemp to run away but the serpent awakes to see you running");
- System.out.println("The serpent closes in on you and places its teeth around your head");
- System.out.println("Everything goes black");
- System.out.println("Game Over");
- System.exit(0);
- break;
- }
- else
- {
- System.out.println("That is not not an avaliable option, choose again");
- SC1 = input.nextInt();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement