Ejemplo n.º 1
0
        static void NameCharacter()
        {
            bool   confirmed = false;
            string PlayerName;

            do
            {
                Console.WriteLine("To begin your quest, enter the name of your character: ");
                PlayerName = Console.ReadLine();
                Console.WriteLine($"\nYour chosen character name is: {PlayerName}");

                ConsoleKey response;
                do
                {
                    Console.WriteLine($"Are you sure {PlayerName} is the name you want to move forward with? [y/n]");
                    response = Console.ReadKey(false).Key;
                    if (response != ConsoleKey.Enter)
                    {
                        Console.WriteLine();
                    }
                } while (response != ConsoleKey.Y && response != ConsoleKey.N);

                confirmed = response == ConsoleKey.Y;
            } while (!confirmed);
            Console.WriteLine($"You chose the name {PlayerName} for your character, let the games commence!");
            Console.ReadKey();
            Console.Clear();

            DialogColour.TheAlchemyst_Dialog($"\n\"{PlayerName}, it is my unfortunate duty to inform you, that you more than likely, \n" +
                                             $"won't be making it out of the Labyrinth alive, so best of luck, surely you will need it!\" ");
            Console.Write("- The Alchymist");
        }
Ejemplo n.º 2
0
        static void Choice()
        {
            string input = "";

            DialogColour.StoryLine_Dialog(PlayerName + ", which will you choose? A or B?");
            input = Console.ReadLine();
            input = input.ToUpper();

            if (input == "A")
            {
                DialogColour.StoryLine_Dialog("You hear a booming voice somewhere in the distance: \n");
                DialogColour.TheAlchemyst_Dialog(PlayerName + "ooh so you have chosen path A... an interesting, and dangerous, choice!");
            }
            else
            {
                DialogColour.StoryLine_Dialog("You hear a booming voice somewhere in the distance: \n");
                DialogColour.TheAlchemyst_Dialog(PlayerName + "ooh so you have chosen path B... an interesting, and dangerous, choice!");
            }
        }