// Program is started from here, runs functions from other files. const variables = require("./variables.js"); const shops = require("./shops"); const readline = require('node:readline'); console.clear(); console.log("__________________________________________________________________________________________________________________________________"); console.log(" _____ _ ____ "); console.log(" / ' / / / / ) /"); console.log("---/__-------__---/---/----__---------_/_---------/-------__----__----__---__----__---_--_----__-------/___ /----__----__----__-/-"); console.log(" / / ) / / / ) / / / o / / ) / ) /___) (_ ` / ) / / ) /___) / | / ) / ) / / "); console.log("_/________(___(_/___/___(___/_(___(__(_ __o_____/____/_(___/_/___/_(___ _(__)_(___/_/_/__/_(___ _____/_____|__(___/_(___(_(___/___"); console.log("Credits: Bethesda Game Studio"); variables.sleep(1000); console.log("What would you like to do?"); console.log("--------------------------"); console.log("1) Start new game"); console.log("2) Learn How to play"); console.log("3) Quit Game"); var mainMenuInput = variables.userInput("Enter: ") switch(mainMenuInput) { case "1": startGame(); break; case "2": while (true) { console.log(variables.randomNumber(10,15)); } break; case "3": console.log("Quitting Game..."); variables.sleep(1000); break; } function startGame() { // So far what I have is filler and testing, feel free to change. console.clear(); variables.sleep(1000); variables.name = variables.userInput("What is your name? "); console.log(variables.name+" Is now your name...") variables.sleep(2000); console.clear(); console.log("Intro:"); console.log("You are an ordinary loyal Enclave Soldier working at Raven Rock. \nYou are typing away at your terminal, entering reports of recovered materials when a message flashes on it.\n\nDear "+variables.name+" ,\n\n This is a direct order from the Enclave High Command. \nIgnore all previous directives. Proceed to Camp Navarro immediately. \nSeek safe passage through the Brotherhood and NCR territories. \nDo not disclose your mission to anyone but Enclave Personel with \nsecurity clearance 5 or higher. Reqisition supplies before departure. \n\n Signed, President John Henry Eden\n\n"); variables.userInput("[Enter to open shop]") console.clear(); variables.prewarmoney = 500; shops.trader(); }