예제 #1
0
        public static void safe(int open)
        {
            if(open == 1)
            {
                WriteLine("You decide to try and open the safe.");

                // variables
                int attemptsLeft = 3;       // number of attempts to open the safe
                int safeCode = 7520;
                int enteredCode = 0;    // initialized

                while(attemptsLeft > 0)
                {
                    WriteLine("Enter the 4-digit code: ");
                    enteredCode = Int32.Parse(ReadLine());
                    if(enteredCode != safeCode)
                    {
    
                        WriteLine("Incorrect!");
                        attemptsLeft -= 1;
                        WriteLine("{0} attempts left.", attemptsLeft);
                        if(attemptsLeft == 0)
                        {
                            WriteLine("You have tried to open the safe 3 times and failed. As you start to turn around to leave, you feel several sharp, piercing points go into your back and side. On the opposite side of the room, 4 small openings are now evident on the wall. You almost immediately feel dizzy and heavy-limbed. You've been drugged or poisoned!");
                            WriteLine("You collapse to the ground, consciousness slipping away. You are still alive but you will be out of commission for quite awhile, as the sleeping poison works its way through your system. You hope that 'she' doesn't find you before you wake up....");

                            // 'end program' code
                        }
                    }
                    if(enteredCode == safeCode)
                    {
                        WriteLine("Correct!");

                        WriteLine("\nThe internal lock of the safe clicks open. You open the door and see 3 items: a folded piece of paper, a newspaper clip, and a large, sliver-plated GUN.");
                        WriteLine("The newspaper clip describes a murder that happened near this house: 5 people were brutally murdered, about 4 weeks ago. 2 bodies were hard to identify, due to the amount of damage inflicted.");
                        WriteLine("The folded piece of paper contains a hand-written message, in a tight, small, cursive hand: She killed them! She is cursed! If you find this, leave this house before it is too late!");
                        WriteLine("You take the clip but leave the note. You also take the GUN. Whoever 'she' is, it sounds like you might need the gun if you find her.");
                        WriteLine("You return your attention to the Entertainment Room. Press 'Enter' to continue.");
                        Console.ReadLine();
                        var weapon = 1;     // signifying that you found the Gun

                        Basement.entertainmentRoom();
                    }
                }
            }
            if(open == 2)
            {
                WriteLine("You decide to not press your luck and ignore the keypad on the safe.\n");
                WriteLine("Press 'Enter' to continue.");
                Console.ReadLine();
                Console.Clear();
                Basement.entertainmentRoom();
            }
        }
예제 #2
0
        public static void entRoomSearch(int choice)
        {        
            switch(choice)
            {
                case 1:
                {    
                    // Chamber - FINAL BATTLE(S)
                    Console.Clear();
                    WriteLine("You approach the large metal door; upon closer inspection, you see that the door is very thick and made of iron.\nAnd it’s a good thing because you hear a bellow from the other side of the door that is not remotely human.\nDespite that, you decide to open the door.");
                    WriteLine("Press 'Enter' to continue.");
                    Console.ReadLine();
                    Console.Clear();
                    WriteLine("You see a very large room, mostly empty - basically a chamber. Most of the walls are stone.\nIn front of the far wall is a table, possibly an altar, covered by some kind of dark purple cloth, trimmed in silver.\nOn that table are some leather-bound books and a couple of silver candle holders; there are tall, twin lit candles in each holder.");
                    WriteLine("Press 'Enter' to continue.");
                    Console.ReadLine();
                    Console.Clear();
                    WriteLine("You notice chalk or charcoal sketches on the left and right walls, on the inside of the door, and a very large drawing in front of the table.\nThese appear to be some form of Protection glyphs that you may have seen in a pamphlet earlier. \nThey consist of a triangle, small circles drawn around the points of the triangle, and a large circle surrounding the triangle-circle figure. The one on the floor is drawn in black and white chalk, is about 10-12 feet in diameter, and surrounds a monstrosity.");
                    WriteLine("Press 'Enter' to continue.");
                    Console.ReadLine();
                    Console.Clear();
                    WriteLine("Inside the floor glyph, in front of the table, stands a gaunt, humanoid figure, well over 7 feet tall. The tattered remains of pants and shoes cling to the lower body of the figure.\nThe upper body is lean muscle, covered by a sleek, grey coat of fur. The head… it LOOKS vaguely like a wolf, if a slightly feminine face was put on a wolf head and muzzle, and the jaws were about three times too wide and long.");
                    
                    WriteLine("Press 'Enter' to continue.");
                    Console.ReadLine();
                    Console.Clear();

                    WriteLine("THIS is the source of the strange occurrences in this house.");
                    WriteLine("This is a Loup-Garou!");
                    
                    // more code
                    WriteLine("Press 'Enter' to continue.");
                    Console.ReadLine();

                    BossEncounter.battleNoLocket();
                }    
                    break;
                case 2:
                    Console.WriteLine("There are bottles of various liquors behind the bar but nothing else of interest.");
                    WriteLine("Press 'Enter' to continue.");
                    Console.ReadLine();
                    Console.Clear();
                    Basement.entertainmentRoom();
                    break;
                case 3:
                    // bathroom2
                    WriteLine("This bathroom is surprisngly intact, compare to other parts of the house. You don't find anything of interest.");
                    WriteLine("Press 'Enter' to continue.");
                    Console.ReadLine();
                    Console.Clear();
                    Basement.entertainmentRoom();
                    // link back to Ent. Room
                    break;
                case 4:
                {   
                    WriteLine("You take a closer look at the safe. Under the numerical keypad, there is a hand-written strip of paper: 'You only get 3 chances'.");
                    WriteLine("Do you try to enter the code?");
                    WriteLine("1. Yes, 2. No");
                    int safeOpen = Int32.Parse(ReadLine());
                    
                    safe(safeOpen);                    
                    break;
                }    
                case 5:
                    Basement.stairs();
                    break;
                default:
                    break;
            }
        }