This is my answer on the challenge before opening the forum
using System;
namespace Programming
{
class Program
{
static void Main(string[] args)
{
// The title of the program and the bg color
Console.Title = "Quest";
//Color of the narrator
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine("A young traveler walks into the bar and the mysterious old man approaches him.");
//color of the old man
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Ah, a young traveler. What is your name?");
//color of the player
Console.ForegroundColor = ConsoleColor.Yellow;
//to make the console remember the name and the companion
String Name,companion;
Name = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Ah, What a nice name. Come, join me here, let's drink, don't worry I'll pay for you.");
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine(Name+" sits down with the old man.");
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("So tell me " +Name+ ", why are you here?");
Console.ForegroundColor = ConsoleColor.Yellow;
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Ah, That is interesting.");
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine("The old man gave " +Name+ " a piece of paper.");
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Here " +Name+ " , That is the map of your quest, quick, complete the quest now. \nSadly I can't go with you because I am too old and you look like you are the only human that will do anything.");
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine(Name+" accepts the quest. \nA dragon lands on the bar and the dragon tell the young traveler.");
//color of the dragon
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine(Name+ " , I came here to help you, just imagine one companion and you will have it.");
Console.ForegroundColor = ConsoleColor.Yellow;
companion = Console.ReadLine();
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine("Suddenly a genie came by and said.");
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.Blue;
//color of the genie
Console.WriteLine("You will not complete your quest, and now you will die.");
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine(Name+ " and his/her " +companion+ " fights the genie, and the genie gets angry");
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("That's enough, the fun is over and now you will die.");
//color red
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("The genie snaps his hand and " +Name+" Turned to dust.");
Console.ReadKey();
}
}
}
Hope you like it :)