Project

Story

import java.util.Scanner;

public class sto
{
    public static void main( String[] args) throws Exception
    {
        Scanner keyboard = new Scanner(System.in);
        
        int ans1, ans21, ans31, ans22, ans23, ans32, ans33, ans34;
        String name, ship, enter, no, open;
        
        System.out.println("Welocome to my story. Lets see where it takes you.");
        System.out.println("To personalize the experience, can I get your name?");    
        name = keyboard.next();    
        
        System.out.println(" Just enter 1, 2, or 3 for your options or whatever you want if there are no numbers.");
        System.out.println("In the future, due to the cration of the quantum computers,");
        System.out.println("");
        System.out.println("humanity has found out how to succesfully terraform all a variety of planets and moons,");
        System.out.println("");
        System.out.println("which also led to new forms of life, both friendly and dangerous. This is the world that");
        System.out.println("");
        System.out.println("our story will be taking place in. You have been enlisted to help explore the inner");
        System.out.println("");
        System.out.println("solar system, but the choice of where to go is up to you, so where would you like to go?");     
        System.out.println("");
        System.out.println("#1, VENUS: Hot, tropical planet with vast oceans of liquid mercury, 116 days = 1 day on Earth, making long days and long nights");
        System.out.println("");
        System.out.println("#2, MARS: Pretty cold, but warm enough for water to flow naturally. Most creatures can be found in the rivers and lakes");
        System.out.println("");
        System.out.println("#3, CERES: Dwarf planet moved from the asteroid belt to be on Earths exact orbit, but is always on the opposite side of the sun. Very rocky, and is mainly inhabited by bandits and small mining divisions, constantly battling for its solid gold core. Also rumors of small bands of red yeti in the many underground structures.");
        System.out.println("");
        System.out.println("So where will you be headed?");
        ans1 = keyboard.nextInt();
        
        System.out.println("Proccesing");
        
        
        for ( int i=0; i<80; i++ )
		{
			if ( i%14 == 0 )
				System.out.print(" *_*_*_*_                 \r");
			else if ( i%14 == 1 )
				System.out.print("   *_*_*_*_                \r");
			else if ( i%14 == 2 )
				System.out.print("     *_*_*_*_              \r");
			else if ( i%14 == 3 )
				System.out.print("       *_*_*_*_            \r");
			else if ( i%14 == 4 )
				System.out.print("         *_*_*_*_          \r");
			else if ( i%14 == 5 )
				System.out.print("           *_*_*_*_        \r");
			else if ( i%14 == 6 )
				System.out.print("             *_*_*_*_      \r");
			else if ( i%14 == 7 )
				System.out.print("               *_*_*_*_    \r");
			else if ( i%14 == 8 )
				System.out.print("                 *_*_*_*_  \r");
			else if ( i%14 == 9 )
				System.out.print("                   *_*_*_*_\r");
			else if ( i%14 == 10 )
				System.out.print("*_                   *_*_*_\r");
			else if ( i%14 == 11 )
				System.out.print("*_*_*                  *_*_\r");
			else if ( i%14 == 12 )
				System.out.print("*_*_*_*                  *_\r");
			else if ( i%14 == 13 )
				System.out.print("*_*_*_*_                  *\r");
			
                //oh, this is starting to make sence
			Thread.sleep(50);
		}
        
        
        System.out.println("Alright then, " + name + " if you would just step into the freezing chamber to get you all nice and snug for your journey your planet's space station.");
   
    
        // senario 1
        if ( ans1 == 1 )
        {
        System.out.println("So your trip to Venus will take about 5 weeks, but don't worry, we'll use shock theropy on your muscles to make sure that they are strong by your arrival.");
        System.out.println("Please enter ok to enter to chamber");
        enter = keyboard.next();    
        System.out.println("Now if you'll step inside the hyper-sleep chamber, the procces should start shortly.");    
        
        try {
            
            Thread.sleep(2500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("...");
        
        try {
            
            Thread.sleep(2500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      } 
            
        System.out.println("System starting in");
      try {
            
            Thread.sleep(750);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
        System.out.println("3");
     try {
            
            Thread.sleep(1500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
        System.out.println("2");    
      try {
            
            Thread.sleep(1500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("1");
      try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
        System.out.println("*tssssssss.....*");
    try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
    
        System.out.println("Trust me, if you think that you have weird dreams while you sleep, hyper-sleep dreams are the next level of weird.")
;
       try {
            
            Thread.sleep(4000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }     
        System.out.println(name+", can you hear me? It's time to get up.");
        System.out.println("As you get up, you feel strange, and as you look down, all your muscles are toned to perfection, despite a few black burn marks from the shocks.");
        System.out.println("Welcome to Venus. So I have a couple options for places to go, so where would you like to go?");
        System.out.println("1: the Jungles");
        System.out.println("2: an alien settlement");
        System.out.println("3: to a large, volcanic island");
        ans21 = keyboard.nextInt(); 
            
        System.out.println("Alright, enter your pod and you will be launched shortly. Buckle up.");
            
       try {
            Thread.sleep(1000);                 //1000 milliseconds is one second.
        } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("A voice comes over the speakers, 'firing pod in'" );
       try {
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }    
        System.out.println("3");
    try {
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
System.out.println("2");
try {
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }

        if ( ans21 == 3 )
        {
            System.out.println("2");
try {
            Thread.sleep(500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
System.out.println("2");

            try {
                Thread.sleep(250);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
System.out.println("2");
            try {
                Thread.sleep(100);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        
       System.out.println("Well this can't be good");
        try {
                Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("*PSSHHHHHHHHhhhhhhhhh.....*");
        System.out.println("Thank you for choosing the intersteler travel agency, your friend in the space travel bussiness.");
            
        try {
                Thread.sleep(3000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
            System.out.println("Now entering the atmosphere.");
        try {
                Thread.sleep(750);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }    
            System.out.println("...");
        try {
                Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
            System.out.println("Activating landing thrusters");
            try {
                Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
            System.out.println("ERROR ERROR ERROR");
            System.out.println("AUTOLANDING HAS FAILED TO ACTIVATE");
            System.out.println("ACTIVATING MANUAL MODE");
            System.out.println("Its up to you. Do you want to (1) abandon ship or (2) try to fly this thind (You dont know how this thing really works)");
            ans31 = keyboard.nextInt();
            
            if ( ans31 == 1)
            {
                System.out.println("Your seat ejects, your parachute launches, and you eventually land on a random smaller island. Your emergency equiptment has been damaged and now you're stuck here.");
                System.out.println("Good news is there is plenty of wild life and you have a machine that makes water, so all you have to do now is have fun and wait. This is probably going to take a while.");
                System.out.println("");
                System.out.println("95 years later, a small group of adventurers find the island, but you didn't make it that long, but they did find a large log you made, where you wrote about everything you did, becoming a galaxy bestseller. In you memory, they call this place Lost " + name + "'s Island.");
            }
            
            
            
            if ( ans31 == 2)
            {
            System.out.println("You try and pull the pod's joystick, changing your trajectory to the center of the volcano.");
            System.out.println("You crash and burn, and with the ship swallowed up by the volcano, no one knows what happened.");
            }
            
        }
            
     
        System.out.println("1");
        
        if ( ans21 == 1)
        { 
        System.out.println("Once you land, you step out and imediatly see a pack of white Venian flying leopards, and hop right back into you pod, only to have the pack hit and topple the pod.");
        System.out.println("Looks like you're kinda stuck at the moment.");    
        }
        if ( ans21 == 2 )
        {
        System.out.println("Once you land, you attempt to speak with the aliens, but are imediatly arrested for being an 'illegal alien'.");
        System.out.println("You live out the next 15 years as a slave until your are finally rescued by the Space Marines. As lucky as you are, you a scarred by this event which leads you to become an Alien Hunter");    
        }
        }
        
        // senario 2
        if ( ans1 == 2 )
        {
        System.out.println("So your trip to Mars will take about 18 weeks, but don't worry, we'll use shock theropy on your muscles to make sure that they are strong by your arrival.");
        System.out.println("Please enter ok to enter to chamber");
        enter = keyboard.next();    
        System.out.println("Now if you'll step inside the hyper-sleep chamber, the procces should start shortly.");    
        
        try {
            
            Thread.sleep(2500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("...");
        
        try {
            
            Thread.sleep(2500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      } 
            
        System.out.println("System starting in");
      try {
            
            Thread.sleep(750);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
        System.out.println("3");
     try {
            
            Thread.sleep(1500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
        System.out.println("2");    
      try {
            
            Thread.sleep(1500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("1");
      try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
        System.out.println("*tssssssss.....*");
        
        try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }    
        
       System.out.println("Hey "+name+", how ya doin?"); 
       System.out.println("Hey, so we're going to be ariving in the outer atmosphere pretty soon, so where would you like to go?");
        System.out.println("So you can go to the (1) Atric Cap, (2) the depths of the ocean, or (3) the patrol the skies for martain sky serpents");    
        ans22 = keyboard.nextInt();
            
        if ( ans22 == 1)
        {
        System.out.println("I hope you brought a jacket cuz this is gonna be pretty cold");
        System.out.println("Your ship has been provided with a snow mobile and proper food.");
        System.out.println("Now if you'd just step in here...");
        System.out.println("(enter step to enter the ship)");
        ship = keyboard.next();
            
        System.out.println("Taking off...");
         try {
            
            Thread.sleep(3000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      } 
        System.out.println("Welcome to the artic. From here, you can observe a vast white slate, populated by mysterious creatures humanity has never seen. Good job.");
        System.out.println("After days of exploring, you are able to fill your log with samples and pictures, putting you in history as "+name+", the Explorer.");    
            
            
            
        }
        
        if ( ans22 == 2)
        {
        System.out.println("We're going to fire you into to ocean in an orbital submarine. If you've never done this before, its... fun.");
        System.out.println("Launching sub in"); 
        try {
            
            Thread.sleep(750);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
        System.out.println("3");
     try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
        System.out.println("2");    
      try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("1");
       try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }    
       System.out.println("LAUNCH!");
        System.out.println("*BWWWWWWWwwwwwwww....*");
            
        try {
            
            Thread.sleep(2500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("BRACE FOR WATER IMPACT");
        try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }    
       System.out.println("Wecome to the ocean. Your trip will be about 18 weeks... I really hope you dont get bored.");
        System.out.println("Oh, look, theres a giant shrimp! Better not let it eat you");    
            
            
        }
            
        if ( ans22 == 3)
        {
        System.out.println("Preparing your jet, but heads up, these things can be kinda violent");
        System.out.println("I mean, they're pretty much dragons, just faster");
        System.out.println("Now if you'd just step in here...");
        System.out.println("(enter step to enter the ship)");
        ship = keyboard.next();
            
        System.out.println("Ok, lets do this");
         
        try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }    
        System.out.println("Staring engines...");
    try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      } 
            
        System.out.println("Aaaaaand we're off!");
        System.out.println("Oh, radar's picking something up up ahead. Wanna go see what it is?");
        no = keyboard.next();
        System.out.println("Was gonna do it either way");
        try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }    
        System.out.println("Yup, its a sky serpent all right");
        System.out.println("And its coming right at us. Fast. Great...");
        System.out.println("I mean, this thing does have weapons, and sky seprent scales sell for a fortune. You wanna (1) engage or (2) retreat");
        ans32 = keyboard.nextInt();    
            
        if (ans32 == 1)
        {
        System.out.println("Lets down this thing!");
        System.out.println("That was the last time anyone heard from " + name + ". The ship log says the ship didnt actually have any weapons, and the ship got shreaded instantly.");
        System.out.println("Your greed got the better of you. And you paid for it with you life");    
        }
        
        if (ans32 == 2)
        {
        System.out.println("You should probably say that the serpent got scared and fled, but ok");
        System.out.println("No trophy, but at least you'll have a cool story");    
        }
            
            
            
            
            
        }
        
        }
        
        // senario 3
        if ( ans1 == 3 )
        {
         {
        System.out.println("So your trip to Ceres will take about 26 weeks, but don't worry, we'll use shock theropy on your muscles to make sure that they are strong by your arrival.");
        System.out.println("Please enter ok to enter to chamber");
        enter = keyboard.next();    
        System.out.println("Now if you'll step inside the hyper-sleep chamber, the procces should start shortly.");    
        
        try {
            
            Thread.sleep(2500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("...");
        
        try {
            
            Thread.sleep(2500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      } 
            
        System.out.println("System starting in");
      try {
            
            Thread.sleep(750);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
        System.out.println("3");
     try {
            
            Thread.sleep(1500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
        System.out.println("2");    
      try {
            
            Thread.sleep(1500);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("1");
      try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }        
        System.out.println("*tssssssss.....*");
        
        try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
             
      System.out.println("You woke up, but somethings not right");       
      System.out.println("Your chamber is cracked open and a flashing red light is leaking through, flashing every 4 seconds or so");
      try {
            
            Thread.sleep(1000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
             
      System.out.println("You hear a loud noise. It sounded like gun fire");
      
             
        try {
            
            Thread.sleep(2000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
      System.out.println("A small line on a screen starts moving faster and faster. Its reading your heartbeat");
      System.out.println("Its getting faster and faster");
        
        try {
            
            Thread.sleep(4000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }  
        System.out.println("You hear a voice, but its not the voice of that sweet lady who helped you get in your camber");
             try {
            
            Thread.sleep(4000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("You decide to see whats going on");
        System.out.println("Are you ready for what happenes next?");
        no = keyboard.next();
             
        System.out.println("As you leave your chamber, you look around the room with all the other pods, all of them illuminated by the flashing red emergency lights.");
        System.out.println("You see a case on the wall, also flashing red, with the word 'EMERGENCY USE ONLY' over it");
        System.out.println("(enter open to see whats inside)");
        open = keyboard.next();
             
        System.out.println("Inside is a flashlight, an axe, and a shotgun");
        System.out.println("Since you only have two hands, you have to leave one behind");
        System.out.println("1) the flashlight");
        System.out.println("2) the axe");
        System.out.println("3) the shotgun");
        ans23 = keyboard.nextInt();
             
        if ( ans23 == 1)     
        {
        System.out.println("I guess you're depending on the emergency lights");
        System.out.println("As you walk out of the chamber room, you hear voices in the cargo hull.");
        System.out.println("As you look in, it's clear what happened. The ships hull has been breached by another ship and the cargo bay is full of armed men.");
        try {
            
            Thread.sleep(6000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("Oh god, a security patrol is coming your way!");
        System.out.println("Luck for you, there is a pile of boxes by you and you hide behind them");
        System.out.println("As you hide, you step on something, breaking it and alert the security patrol!");
        System.out.println("Do you want to (1) hold still and hope they don't find you or (2) break for the escape pod");
        ans33 = keyboard.nextInt();
        
        if ( ans33 == 1)
        {
        System.out.println("As they come by, you are succesfully able to hide without being seen, but realize that this you have to do something, so you try to stealthily take them down.");
        System.out.println("While the first one is knocked down by the butt of the axe, the second one spotted you. In an instant reaction, you pull and fire the shotgun, missing him and hitting a fuel tank, blowing a whole in the side of the ship. While the hull depressurizes, you made it through the security doors.");
        System.out.println("You're seen as a hero");    
        }
        if ( ans33 == 2 )
        {
        System.out.println("The patrol sees you and shots you with a stun gun. As a result, you are taken hostage and are used as leverage to get $28 million from the US government.");
        System.out.println("That could have gone better");
        }   
        }
             
             
        if (ans23 == 2)
        {
        System.out.println("Alright, you go out into the hallway and see a sign with the flashlight that point you to cockpit");
        System.out.println("Once you get there, you find it is locked");
        System.out.println("You have a shotgun, but you can't break in with that; its to loud");
        System.out.println("Whould you like to go into the (1) escape pod or (2) go toward the voices?");
        ans34 = keyboard.nextInt();
            
        
        if ( ans34 ==1)
        {
        System.out.println("Congrats, you made it out alive, and lets hope someone finds your distress beacon.");
        }
        if ( ans34 ==2)
        { 
        System.out.println("As you look in, it's clear what happened. The ships hull has been breached by another ship and the cargo bay is full of armed men.");
        try {
            
            Thread.sleep(6000);                 //1000 milliseconds is one second.
      } catch(InterruptedException ex) {
      
         ex.printStackTrace();
      }
        System.out.println("Oh god, a security patrol is coming your way!");
        System.out.println("Luck for you, there is a pile of boxes by you and you hide behind them");
        System.out.println("As you hide, you step on something, breaking it and alert the security patrol!");
        System.out.println("Do you want to (1) hold still and hope they don't find you or (2) break for the escape pod");
        ans33 = keyboard.nextInt();
        
        if ( ans33 == 1)
        {
        System.out.println("As they come by, you are succesfully able to hide without being seen, but realize that this you have to do something, so you try to stealthily take them down.");
        System.out.println("While the first one is knocked down by the butt of the shotgun, the second one spotted you. In an instant reaction, you pull and fire the shotgun, missing him and hitting a fuel tank, blowing a whole in the side of the ship. While the hull depressurizes, you made it through the security doors.");
        System.out.println("You're seen as a hero");    
        }
        if ( ans33 == 2 )
        {
        System.out.println("The patrol sees you and shots you with a stun gun. As a result, you are taken hostage and are used as leverage to get $28 million from the US government.");
        System.out.println("That could have gone better");
        }    
        }
            
            
            
        }
             
        if (ans23 == 3)
        {
        System.out.println("Alright, you go out into the hallway and see a sign with the flashlight that point you to cockpit");
        System.out.println("Once you get there, you see the cockpit is locked behind a glass door. Good thing you have the axe to break through");
        System.out.println("Once you enter, you acces the computer and send out a long-range transmission to the Space Mariners asking for support. Within a few hours, a Battlecruiser is able to reach you from a nearby spacestation.");
        System.out.println("You are a hero");    
        }
     
        }
        
        System.out.println("Thanks for playing, adventurer.");
    
        }
    
    }
}