public void Story5(string[] names, string[] menu, string[] text, bool[] item, int[] num) { int leftOffSet5 = (Console.WindowWidth / 2) - 12; int topOffSet5 = (Console.WindowHeight / 2) - 2; Console.WriteLine("You now have a choice to make"); Console.WriteLine("============================="); Console.WriteLine("Going Forward will take you to the town of Ironshire."); Console.WriteLine("Going Left will take you towards Glassdell forest, and the mages."); Console.WriteLine("Going Right will take you towards Winterhaven, in search of the thief."); Console.WriteLine(""); Console.WriteLine(""); DMenu myDMenu = new DMenu(names, menu, text, item, num); names[2] = Console.ReadLine(); switch (names[2]) { case "f": Console.Clear(); Console.SetCursorPosition(leftOffSet5, topOffSet5); Console.ForegroundColor = ConsoleColor.Green; Console.Write("Chapter Two "); Console.ForegroundColor = ConsoleColor.White; Console.Write(" - "); Console.ForegroundColor = ConsoleColor.Cyan; Console.Write("Old Friends"); Console.ForegroundColor = ConsoleColor.White; Console.ReadLine(); Console.Clear(); Story6(names, menu, text, item, num); break; case "b": Console.Clear(); Story5(names, menu, text, item, num); break; case "r": Console.Clear(); Console.SetCursorPosition(leftOffSet5, topOffSet5); Console.ForegroundColor = ConsoleColor.Green; Console.Write("Chapter Two "); Console.ForegroundColor = ConsoleColor.White; Console.Write(" - "); Console.ForegroundColor = ConsoleColor.Cyan; Console.Write("Is anyone home?"); Console.ForegroundColor = ConsoleColor.White; Console.ReadLine(); Console.Clear(); Story12(names, menu, text, item, num); break; case "l": Console.Clear(); Console.SetCursorPosition(leftOffSet5, topOffSet5); Console.ForegroundColor = ConsoleColor.Green; Console.Write("Chapter Two "); Console.ForegroundColor = ConsoleColor.White; Console.Write(" - "); Console.ForegroundColor = ConsoleColor.Cyan; Console.Write("Lending a hand"); Console.ForegroundColor = ConsoleColor.White; Console.ReadLine(); Console.Clear(); Story9(names, menu, text, item, num); break; default: Console.Clear(); Story5(names, menu, text, item, num); break; } }
//choice public void Trans(string[] names, string[] menu, string[] text, bool[] item, int[] num) { Console.Clear(); Console.WriteLine("You have a choice to make..."); Console.WriteLine("============================"); Console.WriteLine("Go Left through the Magical Barrier."); Console.WriteLine("Go Right through the Iron Door."); Console.WriteLine("Go Forward through the unguarded path."); DMenu myDMenu = new DMenu(names, menu, text, item, num); names[2] = Console.ReadLine(); switch (names[2]) { case "f": while (names[1] == "warrior") { Console.Clear(); Ending1(names, menu, text, item, num); break; } while (names[1] == "mage") { Console.Clear(); Ending2(names, menu, text, item, num); break; } while (names[1] == "thief") { Console.Clear(); Ending3(names, menu, text, item, num); break; } break; case "b": Console.Clear(); Trans(names, menu, text, item, num); break; case "r": while (item[2] == false) { Console.WriteLine("You are unable to pass the iron door."); Trans(names, menu, text, item, num); break; } while (item[2] == true) { Ending5(names, menu, text, item, num); break; } break; case "l": while (item[1] == false) { Console.Clear(); Console.WriteLine("You are unable to pass the magical barrier."); Trans(names, menu, text, item, num); break; } while (item[1] == true) { Ending4(names, menu, text, item, num); break; } break; default: Console.Clear(); Trans(names, menu, text, item, num); break; } }