//a lot of cleanup is needed here!, especially because I need to figure out how to make the breatheDeep thing work better! public class Story { // these ints track the status of the player and where he is, are and how // other people feel about him int windOpinion = 0, hardKnockOpinion = 0, blueBloodOpinion = 1, uraOpinion = 0; int room = 1; // what room the player is in int scene = 1; // the first scene int largestChoice = 4; // number of options for the first choice. int health = 1; // starting health int time = 1; // What time it is in the scene (used for tracking // successive dialogue choices) int internalTime = 1;// A subdivision of what time it is in the scene // Here is the player's name and race int race; // 1, Unicorn 2, Pegasus 3, Earth Pony String name; // Tracks the current input int input = 1; //These ints track where each character is int hardKnock = 2, wind = 1, blueBlood = 2, ura = 2; // these booleans track what the player is carrying boolean healingPotion; boolean halfHealingPotion; boolean shieldAmulet; boolean letterOpener; boolean scalpel; boolean helpingHoof; // Hard Knock's assistance boolean glowLamp; boolean mushroom; // notes whether a real or fake name was chosen boolean realName; // Calls the method based on scene, also sets input to the passed parameter public String returnNewText(int currentInput) { input = currentInput; String newText = ""; if (scene == 1) { newText = this.scene1(); } if (scene == 2) { newText = this.scene2(); } if (scene == 3) { newText = this.scene3(); } if (scene == 4) { newText = this.scene4(); } if (scene == 5) { newText = this.scene5(); } if (scene == 6) { newText = this.scene6(); } return newText; } // returns the largest choice based on how the int variable, largestChoice, // is modified public int getLargestChoice() { return largestChoice; } // THE FIRST SCENE private String scene1() { String newText = ""; if(time == 1) { largestChoice = 3; if(input == 1) { name = "Heavy"; newText = "Okay then " + name + " We need to get you \n" + "sorted out. We're all grateful for your sacrifice, but under \n" + "the circumstances it's going it take us a while to trust you. \n\n" + "Sacrifice? And then you remember. Oh no. Oh no, no...\n" + "1. Your horn\n" + "2. Your wings\n" + "3. Your leg (earth pony)\n\n" + "Choose your race: "; } if(input == 2) { name = "Careful"; newText = "Okay then " + name + " We need to get you \n" + "sorted out. We're all grateful for your sacrifice, but under \n" + "the circumstances it's going it take us a while to trust you. \n\n" + "Sacrifice? And then you remember. Oh no. Oh no, no...\n" + "1. Your horn\n" + "2. Your wings\n" + "3. Your leg (earth pony)\n\n" + "Choose your race: "; } if(input == 3) { name = "Free"; newText = "Okay then " + name + " We need to get you \n" + "sorted out. We're all grateful for your sacrifice, but under \n" + "the circumstances it's going it take us a while to trust you. \n\n" + "Sacrifice? And then you remember. Oh no. Oh no, no...\n" + "1. Your horn\n" + "2. Your wings\n" + "3. Your leg (earth pony)\n\n" + "Choose your race: "; } if(input == 4) { name = "Soldier"; newText = "You cant risk them finding out your real name, you blurt out \"Soldier...\"\n" + "The mare nods. Okay then " + name + " We need to get you \n " + "sorted out. We're all grateful for your sacrifice, but under \n" + "the circumstances it's going it take us a while to trust you. \n\n" + "Sacrifice? And then you remember. Oh no. Oh no, no...\n" + "1. Your horn\n" + "2. Your wings\n" + "3. Your leg (earth pony)\n\n" + "Choose your race: "; realName = false; } time++; largestChoice = 3; } else if(time == 2) { race = input; if (race == 1) { newText = "You reach up a hoof and poke the\n" + "shattered remenants of your horn. Instantly a\n" + "flare of pain shoots down your spine and you cry out in agony.\n" + "The mare snatches your hoof away. \"Don't touch that!\"\n" + "The mare looks you dead in the eye. \"Look, I caulked \n" + "it in time, so it should heal up fine, but if you poke it\n" + "or try and throw around magic, that could change. Fast.\" \n" + "Your eyes widen. No magic? Oh this is bad, very bad...\n\n"; } if (race == 2) { newText = "You instinctively try to spread your wings and cry out in pain \n" + "as broken bomes struggle against tight bandages. You can't... you can't \n" + "The mare puts a hoof on your shoulder and something about her expression \n" + "stops you. She looks strangely... exhausted and sad. Never the less, when she \n" + "meets your eyes she speaks with solid steel. \"Give it time. You will fly \n" + "again.\"\n\n"; } if (race == 3) { newText = "You throw back the sheets and scream in terror. Your left hind leg now \n" + "ends in a bandaged stump just after your hock. For Season's sake you were a farmer! \n" + "How could you live if you couldn't work? How could you- \n" + "The mare physically grabs your head and twists it to face her. \n" + "\"Listen to me. You are going to WALK out of here. We don't care who's side you \n" + "were on.\n\n"; } newText = newText + "The mare puts a hoof on your chest. Your pounding heart slows \n" + "and you feel like you can breathe again.\n\n" + "The mare pulls her hoof back and looks down. \"Sorry, I shouldn't have done that...\n" + "Then again, give a pony an apple...\" \n" + "She smiles. \"I'm going to teach you a little trick. I'm not sure if they still \n" + "teach it in basic training, so stop me if you've heard this one.\"\n\n" + "\"Take a deep breath and close your eyes. I want you to focus on every \n" + " part of your body piece by piece to feel out any possible injuries. \n " + "Then, feel the weight on your body and try to remember each object that \n" + "you're carrying Finally, try to picture the room around you, remember who's \n" + "there and what objects are lying around. I want you to try and do all of \n" + "that before you open your eyes. Are you ready?\n" + "1. Breathe deep\n" + "2. You're not going to do anything funny while my eyes are closed right?\n\n"; largestChoice = 2; time++; } else if (time == 3) { // Time will have to be monitored very carefully in the following, thus internal time is used if (input == 1 && internalTime == 1) { newText = this.breatheDeep(); internalTime = 3; } else if (input == 2 && internalTime == 1) { newText = "The mare smirks. \"No promises, you flirt.\" \n\"" + "In all seriousness though, it's just a breathing\n" + "exercise. You have my word, your virtue will be preserved.\n" + "1. Breathe deep\n" + "2. I don't know...\n" + internalTime; largestChoice = 2; internalTime++; } else if (input == 1 && internalTime == 2) { newText = this.breatheDeep(); internalTime++; } else if (input == 1 && internalTime == 3) { newText = "The mare smiles. \"Perfect, your heartbeat is down already.\" \n\n" + "\"Now, do you have any allergies? Are you on any medication?\"\n" + "You shake your head. The mare gets up and walks over to a metal cabinet.\n" + "She pulls a key from her vest pocket and undoes a sturdy chain. as\n" + "she opens the door, you see a scattering of medical supplies and a few\n" + "bottles of various medications. She takes a small red vial from what\n" + "looks like a rapidly diminishing stock and locks the door behind her.\n" + "\"Normally we like to reserve these for rather extreme emergencies,\"\n" + "She eyes the bottle uncertainly for a moment and sighs. \"I think you've\n" + "earned one.\" She slips the bottle into your shaking forehoof. You'd\n" + "seen something like this before once. When your batallion stopped a\n" + "zebra smuggler.\n" + "\"It's a healing potion,\" the mare explains. \"It should counteract the\n" + "blood loss and a smooth over your more minor injuries.\"\n" + "1. Thank you\n" + "2. Why should I trust your smuggled drugs?\n\n"; largestChoice = 2; time++; internalTime = 1; } else if (input == 2 && internalTime == 2) { newText = "The mare sighs. \"Okay, I guess it is a little silly...\n\n" + "\"Now, do you have any allergies? Are you on any medication?\"\n" + "You shake your head. The mare gets up and walks over to a metal cabinet.\n" + "She pulls a key from her vest pocket and undoes a sturdy chain. as\n" + "she opens the door, you see a scattering of medical supplies and a few\n" + "bottles of various medications. She takes a small red vial from what\n" + "looks like a rapidly diminishing stock and locks the door behind her.\n" + "\"Normally we like to reserve these for rather extreme emergencies,\"\n" + "She eyes the bottle uncertainly for a moment and sighs. \"I think you've\n" + "earned one.\" She slips the bottle into your shaking forehoof. You'd\n" + "seen something like this before once. When your batallion stopped a\n" + "zebra smuggler.\n" + "\"It's a healing potion,\" the mare explains. \"It should counteract the\n" + "blood loss and a smooth over your more minor injuries.\"\n" + "1. Thank you\n" + "2. Why should I trust your smuggled drugs?\n\n"; largestChoice = 2; time++; internalTime = 1; } } else if (time == 4) { if (input == 1 && internalTime == 1) { newText = "You fumble with the potion, it sort of... blurs as you try to bring it\n" + "to your lips.\n" + "The mare winces in sympathy. \"Why don't you try the breathing exercise\n" + "one more time, it will help you reorient to where things are.\"\n" + "1. Breathe Deep\n" + "2. Breathe Deep, but keep an eye open so she doesn't pull anything\n\n"; internalTime++; internalTime++; largestChoice = 2; healingPotion = true; } else if (input == 2 && internalTime == 1) { newText = "The mare groans. \"A. it's not smuggled, and B... Look, \n" + "the fact of the matter is, you're not going to be moving very far \n" + "without three weeks of bed rest or some healing magic, and I don't \n" + "know if you've noticed, but I'm not exactly sitting on a big pile of \n" + "reading material. What do I have to do here? Drink half of it?\n" + "1. No... \n" + "2. Yes, yes you do.\n\n"; internalTime++; largestChoice = 2; } else if (input == 1 && internalTime == 2) { newText = "The mare nods. \"Good answer, those things are worth more than \n" + "solid gold.I didn't decide to give you one lightly.\"\n\n " + "You fumble with the potion, it sort of... blurs as you try to bring it\n" + "to your lips.\n" + "The mare winces in sympathy. \"Why don't you try the breathing exercise\n" + "one more time, it will help you reorient to where things are.\"\n" + "1. Breathe Deep\n" + "2. Breathe Deep, but keep an eye open so she doesn't pull anything\n\n"; internalTime++; largestChoice = 2;; healingPotion = true; } else if (input == 2 && internalTime == 2) { newText = "The mare groans. \"You're really going to make me waste medical supplies,\n" + "MAGICAL medical supplies, just because you don't trust me?\" \n" + "Your expression does not waver. \n" + "She sighs. \"I'm knocking you down to eight lives saved for these horseapples.\" \n" + "She picks the potion from your hoof and carefully measures out half of it into a cup. \n" + "After a moment's\nhesitation she downs it. ... Nothing happens. \n" + "The mare glowers at you.\"There, are you happy?\"\n\n" + "You fumble with the potion, it sort of... blurs as you try to bring it\n" + "to your lips.\n" + "The mare winces in sympathy. \"Why don't you try the breathing exercis \ne" + "one more time, it will help you reorient to where things are.\"\n" + "1. Breathe Deep \n" + "2. Breathe Deep, but keep an eye open so she doesn't pull anything \n\n"; windOpinion--; halfHealingPotion = true; internalTime++; largestChoice = 2; } else if (input == 1 && internalTime == 3) { newText = this.breatheDeep(); time++; largestChoice = 1; internalTime = 1;//resetting internal time } else if (input == 2 && internalTime == 3 ) { newText = this.breatheDeep() + "Your cracked eyelid lets you catch a glimpse of the mare sitting next to\n" + "you... who does absolutely nothing.\n" + " She sticks her tounge out when she sees you peeking.\n\n" + time++; largestChoice = 1; internalTime = 1;//reseting internal time } } else if (time == 5) { newText = "You fail to take the potion. You, a soldier\n " + "of Queen Season's army, lack the mental discipline to guide a \n" + "bottle to your lips. You feel horribly ashamed, and you hang your \n" + "head... Your stomach tells you that was a mistake.\n\n" + "The mare gives you a level look, \"You took a barrage of fire spells\n " + "and half a mountain and lived. I know you can do this\"\n\n" + "Her words ring a little hollow though, as her eyes are locked nervously \n" + "on the potion out of fear that it will drop. \n\n" + "1.Try again\n" + "2.I need your help\n\n"; largestChoice = 2; time++; } else if (time == 6 && input == 1) { newText = "You narrow your eyes, squint at the bottle and\n" + "grip it between two hooves, the bottle sloshes in your \n" + "hand and tips for a moment, spilling a few drops of the \n" + "liquid on the sheets."; if(race == 1) { newText = newText + "instinctively you start to reach out with\n" + "your horn and a stabbing pain diggs into your skull. Oh, right.\n"; } newText = newText + "Eventually, you manage to guide the bottle to your mouth.\n"; if (healingPotion) { newText = newText + "You feel a strong surge of energy and a distinctly itchy feeling as your wounds\n" + " knit themselves together. You feel energized, you feel great! \n" + "You look at your biggest wound, the one you're REALLY worried about...\n " + "You sigh. Well, at least you're a healthy cripple.\n\n"; health = health + 8; healingPotion = false; } if (halfHealingPotion) { newText = newText + "You feel a weak surge run through you and a distincly itchy feeling as\n" + " your wounds start to knit themselves together. Start being the operative\n" + "word. You still feel like garbage, but you think you can move now.\n\n"; health = health + 3; halfHealingPotion = false; } newText = newText + "The mare looks you over. \"Okay, it looks like you've healed up enough\n" + "to move. C'mon, there's some ponies that want to meet you. \n\n"; if(race == 3) { newText = newText + "You start to roll yourself over, but the mare stops you. You look down\n " + "at the empty space where your leg should be.\n" + "Oh, right.\n" + "The mare leans over and undoes the bandages, the healing potion has left \n" + "a clean stump behind, but nothing more. You feel very numb looking at \n" + "it. \n\n" + "She touches the end gingerly. \"Do you feel any pain?\" \n" + "You shake your head. the touch is disturbing, but harmless. \n\n" + "\"Good\" she says \"That means that there's probably no infection, and the cut \n" + "was through the lower portion of your metatarsus, so your mobility prospects are good.\" \n\n" + "The mare goes back over to the cabinet and retrieves a bizzare looking wooden and metal\n " + "contraption with a horse shoe on the end that you swiftly realize is a hoof prosthesis. \n" + "She carries it over to you and places it gingerly on the stump. \n" + "She then proceeds to fit it carefully to your leg and tighten it down with a series of straps.\n " + "She makes note of your exact measurements. \n\n" + "\"Does that feel okay?\" \n You nod. Then it's time. Slowly, carefully, and with a \n" + "lot of help from the mare, you manage to stand up. You take a few steps forward. \n" + "You're a little wobbly at first, but you can walk.\n\n" + "The mare smiles. \"What'd I tell you? We quadrapeds pop right back up\" \n\n"; } else { newText = newText + "Your muscles are stiff, and your injuries still limit your abilities,\n " + "but you manage to roll out of bed. \n\n"; } newText = newText + "The mare nods, \"Okay then, let's get you to the stallion in charge.\" \n" + "1. Okay, let's do it!\n" + "2. Can I ask you some questions first? \n\n"; largestChoice = 2; time++; } else if (time == 6 && input == 2 && internalTime == 1) { newText = "The mare nods. \"Okay.\"\n\n" + "She reaches out and guides the bottle to your mouth, her movements much \n" + "steadier than those of your shaking hooves.\n\n"; if (healingPotion) { newText = newText + "You feel a strong surge of energy and a distinctly itchy feeling as your wounds\n" + " knit themselves together. You feel energized, you feel great! \n" + "You look at your biggest wound, the one you're REALLY worried about...\n " + "You sigh. Well, at least you're a healthy cripple.\n\n"; health = health + 9; healingPotion = false; } if (halfHealingPotion) { newText = newText + "You feel a weak surge run through you and a distincly itchy feeling as\n" + " your wounds start to knit themselves together. Start being the operative \n" + "word. You still feel like garbage, but you think you can move now.\n\n"; health = health + 4; halfHealingPotion = false; } newText = newText + "The mare gives you an odd look. \"Don't get me wrong. I'm here to\n " + "help, but why didn't you want to try that on your own?\"\n" + "1. I didn't think I could do it. \n" + "2. My pride wasn't worth risking the potion.\n\n"; internalTime++; largestChoice = 2; } else if(time == 6 && internalTime == 2) { if(input == 1) { newText = "It felt good to be healthy... but not so good that you acted so weak in \n" + "front of... of... Well \'The Enemy\' certainly wasn't the right phrase \n" + "any more. You weren't sure how to think of the stange mare.\n\n" + "She put a hoof lightly on your shoulder. \"Sometimes it takes a lot \n" + "of strength to admit you need help.\"\n\n"; windOpinion++; } else if (input == 2) { newText = "It felt good to be healthy... but not so good that you acted so weak in \n" + "front of... of... Well \'The Enemy\' certainly wasn't the right phrase \n" + "any more. You weren't sure how to think of the stange mare.\n" + "\n\nThe mare glances back at the locked cabinet. She smiles.\n " + "\"You sounded a bit like the organizer there.\"\n\n"; } newText = newText + "The mare looks you over. \"Okay, it looks like you've healed up enough \n" + "to move. C'mon, there's some ponies that want to meet you. \n\n"; if(race == 3) { newText = newText + "You start to roll yourself over, but the mare stops you. You look down\n " + "at the empty space where your leg should be.\n" + "Oh, right.\n" + "The mare leans over and undoes the bandages, the healing potion has left \n" + "a clean stump behind, but nothing more. You feel very numb looking at \n" + "it. \n\n" + "She touches the end gingerly. \"Do you feel any pain?\" \n" + "You shake your head. the touch is disturbing, but harmless. \n\n" + "\"Good\" she says \"That means that there's probably no infection, and the cut \n" + "was through the lower portion of your metatarsus, so your mobility prospects are good.\" \n\n" + "The mare goes back over to the cabinet and retrieves a bizzare looking wooden and metal\n " + "contraption with a horse shoe on the end that you swiftly realize is a hoof prosthesis. \n" + "She carries it over to you and places it gingerly on the stump. \n" + "She then proceeds to fit it carefully to your leg and tighten it down with a series of straps.\n " + "She makes note of your exact measurements. \n\n" + "\"Does that feel okay?\" \n You nod. Then it's time. Slowly, carefully, and with a \n" + "lot of help from the mare, you manage to stand up. You take a few steps forward. \n" + "You're a little wobbly at first, but you can walk.\n\n" + "The mare smiles. \"What'd I tell you? We quadrapeds pop right back up\" \n\n"; } else { newText = newText + "Your muscles are stiff, and your injuries still limit your abilities,\n" + "but you manage to roll out of bed. \n\n"; } newText = newText + "The mare nods, \"Okay then, let's get you to the stallion in charge.\" \n" + "1. Okay, let's do it!\n" + "2. Can I ask you some questions first? \n\n"; largestChoice = 2; time++; } return newText; } private String scene2() { String newText = ""; /* * TODO: code scene */ return newText; } private String scene3() { String newText = ""; /* * TODO: code scene */ return newText; } private String scene4() { String newText = ""; /* * TODO: code scene */ return newText; } private String scene5() { String newText = ""; /* * TODO: code scene */ return newText; } private String scene6() { String newText = ""; /* * TODO: code scene */ return newText; } // method that displays race, health inventory and current location, will // not be used to select items because it's // far too clunky private String breatheDeep() { String newText = ""; int itemCount = 0; // sets it so the program assumes you're carrying // nothing newText = newText + name + "\n\n"; newText = newText + "Health = " + health + "\n\n"; switch (race) { case 1: newText = newText + "UNICORN\n" + ".................~()~().../.....\n" + "..................(~0000/ /............\n" + "..............(~0/ _ ............\n" + ".............(~0/ Q __.....\n" + "............(~0/ _D........\n" + "...........(~0/ ___/.........\n" + "..........(~0/ __/...................\n" + "____________/ /.........................\n" + " |..........................\n" + " |...........................\n" + " |..........................\n" + " |..........................\n" + " |.........................\n" + " .......................\n" + " .......................\n" + "________| |_____ .......................\n" + "........| |...... ......................\n" + "........| |....... .........................\n\n"; break; case 2: newText = newText + "PEGASUS\n" + "..................~()~()......\n" + "..................(~000000............\n" + "..............(~0/ _ ............\n" + ".............(~0/ Q __.....\n" + "............(~0/ _D........\n" + "...........(~0/ ___/.........\n" + "..........(~0/ __/...................\n" + "____________/ /.........................\n" + "|||||||||>> |..........................\n" + "|||||||||>> |...........................\n" + "|||||||||> |..........................\n" + "||||||||| |..........................\n" + "||||||||| |.........................\n" + "||||||||| .......................\n" + "||||||||| .......................\n" + "||||||||| |_____ .......................\n" + "--------| |...... ......................\n" + "........| |....... .........................\n\n"; break; case 3: newText = newText + "EARTH PONY\n" + "..................~()~()......\n" + "..................(~000000............\n" + "..............(~0/ _ ............\n" + ".............(~0/ Q __.....\n" + "............(~0/ _D........\n" + "...........(~0/ ___/.........\n" + "..........(~0/ __/...................\n" + "____________/ /.........................\n" + " |..........................\n" + " |...........................\n" + " |..........................\n" + " |..........................\n" + " |.........................\n" + " .......................\n" + " .......................\n" + " | |_____ .......................\n" + "--------| |...... ......................\n" + "........| |....... .........................\n\n"; break; } newText = newText + this.location() + "\n\n INVENTORY:"; if (healingPotion) { itemCount++; newText = newText + itemCount + ") Healing Potion (Sets Health to 10)\n"; } if (halfHealingPotion) { itemCount++; newText = newText + itemCount + ") Half Healing Potion (Sets Health to 5)\n"; } if (shieldAmulet) { itemCount++; newText = newText + itemCount + ") Sheild Amulet (Out of Power)\n"; } if (letterOpener) { itemCount++; newText = newText + itemCount + ") Letter Opener (Dull)\n"; } if (scalpel) { itemCount++; newText = newText + itemCount + ") Scalpel (Dull)\n"; } if (helpingHoof) { itemCount++; newText = newText + itemCount + ") Hard Knock's Strength\n"; } if (glowLamp) { itemCount++; newText = newText + itemCount + ") Glow Lamp\n"; } if (mushroom) { itemCount++; newText = newText + itemCount + ") Mushroom\n"; } //commented out as it is largely not helpful newText = newText + "Enter " + 1 + " to exit:\n\n"; // Here is the code for selecting each menu option largestChoice = 1; return newText; } private String location() { String newText = ""; //image for the training room if(room == 2){ newText = newText + "TRAINING ROOM\n" // this is complicated, but it's the best way to do it as far as I can see. + "0000000000000000000000000000000000000000000000\n" + "0 () () () () 0\n" + "0 KICKING BAGS 0\n" + "0 0\n" + "0------- ______________________ -------0\n" + "0 | | | | 0\n" + "0 WEAPON| | | | 0\n" + "0 LOCKER| | EXERCISE MAT | | COT 0\n" + "0 | | | | 0\n"; if(hardKnock == 2) { newText = newText + "0 | | (HARD KNOCK) | | 0\n"; } else if (hardKnock != 2) { newText = newText + "0 | | | | 0\n"; } newText = newText + "0 | | | -------0\n" + "0------- |______________________| |\n" + "0 DOOR|\n"; if (ura == 2) { newText = newText + "0 (URA) |\n"; } else if (ura != 2) { newText = newText + "0 |"; } if (wind == 2) { newText = newText + "0 (WIND) 0\n"; } else if (wind != 2) { newText = newText + "0 0\n"; } if (blueBlood == 2) { newText = newText + "0 DOOR (BLUEBLOOD) 0\n"; } else if (blueBlood != 2) { newText = newText + "0 DOOR 0\n"; } newText = newText + "00000000_____000000000000000000000000000000000\n\n"; newText = newText + "You find yourself in what appears to be a training room \n" + "kicking bags line one wall and you note a metal mesh weapons\n " + "locker is present, filled with dangerous implements.\n\n"; if (hardKnock == 2) { newText = newText + "Hard Knock is here. The muscular earth pony is stretching\n" + "out on the exercise mat.\n\n"; } } /* * TODO MUCH, MUCH MORE EDITING. */ //image for the Clinic if(room == 1) { newText = newText + "CLINIC\n" + "00000000_____000000000000000000000000000000000\n" + "0 DOOR U()U | 0\n" + "0 WASH BASIN | 0\n" + "0 |CABINET 0\n"; if (ura == 1) { newText = newText + "0 (URA) | 0\n"; } else if (ura != 1) { newText = newText + "0 | 0\n"; } newText = newText + "0 ----------0\n" + "0 0\n" + "0 0\n"; if (blueBlood == 1) { newText = newText + "0 (BLUEBLOOD) 0\n"; } else {newText = newText + "0 0\n";} newText = newText + "0 0\n"; if (hardKnock == 1) {newText = newText + "0------- -------- (HARD KNOCK) 0\n";} else {newText = newText + "0------- -------- 0\n";} newText = newText + "0 | | | |\n"; if (wind == 1) {newText = newText + "0 YOUR | (WIND) | | DOOR|\n";} else {newText = newText + "0 YOUR | | | DOOR|\n";} newText = newText + "0 COT | | COT | |\n" + "0 | | | 0\n" + "0 | | | 0\n" + "0000000000000000000000000000000000000000000000\n\n"; } if(room == 3){ newText = newText + "LABORATORY" +"0000000000000000000000000000000000000000000000\n" +"0 |REAGENT| |U U U U U | 0\n" +"0 |CABINET| | FUME HOOD | 0\n" +"0 --------- ---------------- 0\n" +"0 ______________________ -------0\n" +"0 | LAB BENCH | | 0\n" +"0 ------ |______________________| | 0\n" +"0 |TRAP| | COT 0\n"; if (ura == 3) {newText = newText + "0 |DOOR| (URA) | 0\n";} else {newText = newText + "0 |DOOR| | 0\n";} newText = newText + "0 ------ ______________________ | 0\n" +"0 | LAB BENCH | -------0\n" +"| |______________________| 0\n" +"|DOOR 0\n"; if (wind == 3) {newText = newText + "| (WIND) 0\n";} else {newText = newText + "| 0\n";} if (blueBlood == 3) {newText = newText + "0 (BLUEBLOOD) 0\n";} else {newText = newText + "0 (BLUEBLOOD) 0\n";} if (hardKnock == 3) {newText = newText + "0 DOOR (HARDKNOCK) 0\n";} else {newText = newText + "0 DOOR 0\n";} newText = newText + "00000000_____000000000000000000000000000000000\n"; if(room == 4){ newText = newText + "BEDROOM" +"00000000_____000000000000000000000000000000000\n" +"0 DOOR U()U | 0\n" +"0 WASH BASIN | 0\n" +"0 | OVEN 0\n"; if(hardKnock == 4) {newText = newText + "0 (HARDKNOCK) ----------0\n";} else {newText = newText + "0 ----------0\n";} if(wind == 4) {newText = newText + "0 (WIND) 0\n";} else {newText = newText + "0 (WIND) 0\n";} newText = newText + "| ----0\n" +"|DOOR | F 0\n" +"| | O 0\n" +"0 | O 0\n" +"0------- -------- | D 0\n" +"0 | | | | 0\n"; if(ura == 4){newText = newText + "0 | |(URA) | ----0\n";} else {newText = newText + "0 | | | ----0\n";} if(blueBlood == 4) {newText = newText + "0 | | | (BLUEBLOOD) 0\n";} else {newText = newText + "0 | | | (BLUEBLOOD) 0\n";} newText = newText + "0 BUNK | | BUNK | -------- 0\n" +"0 | | | | DESK | 0\n" +"0000000000000000000000000000000000000000000000\n";} } return newText; } }