77

Code

 ///Name: Conner Wygaerts
///Period: 6
///Project Name: Adventure2
///File Name: Adventure2.java
///Date Finished: 2/2/16

  import java.util.Scanner;
import java.util.Scanner;

public class Adventure2
{
	public static void main( String[] args )
	{
		Scanner keyboard = new Scanner(System.in);


		
		int nextroom = 1;
		String choice = "";

		while ( nextroom != 0 )
		{
			if ( nextroom == 1 )
			{
				System.out.println( "You are in a haunted house. There is a room to the left and to the right." );
				System.out.print( "> " );
				choice = keyboard.nextLine();
				if ( choice.equals("left") )
					nextroom = 2;
				else if ( choice.equals("right") )
					nextroom = 3;
				else
					System.out.println( "ERROR" );
			}
			if ( nextroom == 2 )
			{
				System.out.println( "You reach nothing so go back." );
				System.out.print( "> " );
				choice = keyboard.nextLine();
				if ( choice.equals("back") )
					nextroom = 1;
				else
					System.out.println( "ERROR" );
			}
			if ( nextroom == 3 )
			{
				System.out.println( "You get to another room do you want to go upstairs or downstairs?" );
				choice = keyboard.nextLine();
				System.out.print( "> " );
				if ( choice.equals("upstairs") )
					nextroom = 1;
				else if ( choice.equals("downstairs") )
					nextroom = 4;
				else
					System.out.println( "ERROR" );
			}
			if ( nextroom == 4 )
			{
				System.out.println( "You enter a bedroom. Would you like to open the closet or go on the balcony?" );
				choice = keyboard.nextLine();
				System.out.print( "> " );
				if ( choice.equals("closet") )
					nextroom = 5;
				else if ( choice.equals("balcony") )
					nextroom = 6;
				else
					System.out.println( "ERROR" );
			}
            if ( nextroom == 5 )
			{
				System.out.println( "You try on all the clothes but when you try and take it off you realize that it is some bioengineered material that doesnt come off and it begins crawling and stretching over your body like the anti-spiderman and it eventually enters your mouth and suffocates you" );
				nextroom = 0;
			}
            if ( nextroom == 6 )
			{
				System.out.println( "You overlook the city lights under the beautiful night sky with gleaming stars and the bright moon when all of a sudden you feel a sharp excurciating pain and something warm trickle down your stomach. An assasin has targeted and shot you from one of the trees in the distance. You die within minutes." );
				nextroom = 0;
			}
				
		}

		System.out.println( "In this house, you die no matter what." );
	}
	
}
  

Picture of the output

YourInitials.html